开发者

Is it possible to include fonts in an app bundle and make them available in a UIWebView

I'm working on some HTML5 content to be included as part of an iPad app in a Web View and it requires some custom fonts which I was attepting to implement via CSS and @font-face

As I understand it, Mobile Safari only supports SVG fonts, but my testing has shown Mobile Safari to really struggle with SVG and the per开发者_StackOverflow中文版formance hit is a serious issue.

So... is it possible to put fonts in the App Bundle and somehow make them available to the webview?


Yes it is. Include the fonts in the App Bundle and in the app-info.plist use

"Fonts provided by application"

and provide the file name for each font.

Looks something like this...


Is it possible to include fonts in an app bundle and make them available in a UIWebView

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜