[英]Does iOS SDK support SVG as custom font?
I have a custom font in SVG-file. 我在SVG文件中有一个自定义字体。 I've added it to the application's bundle same as i did it with OTF font.
我已经将它添加到应用程序的捆绑包中,就像使用OTF字体一样。 Now I'm trying to use it in code below:
现在,我尝试在下面的代码中使用它:
UIFont * customFont = [UIFont fontWithName:@"myFont" size:16.0f];
And I am getting error: 而且我得到了错误:
Apr 7 14:58:46 Alexander ExampleProject[26403] : FT_Open_Face failed: error 2.
4月7日14:58:46 Alexander ExampleProject [26403]:FT_Open_Face失败:错误2。
I'm thinking iOS SDK just not supporting SVG-font yet because the same way works with OTF-font, but does not with SVG. 我在想iOS SDK尚不支持SVG字体,因为相同的方式适用于OTF字体,但不适用于SVG。 Am i right?
我对吗?
The iOS SDK does not support SVG as a font. iOS SDK不支持SVG作为字体。
But you could just convert the font, for example with http://www.freefontconverter.com/ 但是您可以只转换字体,例如使用http://www.freefontconverter.com/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.