Question

I have a custom font in SVG-file. I've added it to the application's bundle same as i did it with OTF font. 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.

I'm thinking iOS SDK just not supporting SVG-font yet because the same way works with OTF-font, but does not with SVG. Am i right?

Was it helpful?

Solution

The iOS SDK does not support SVG as a font.

But you could just convert the font, for example with http://www.freefontconverter.com/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top