I’ve got a custom font I need to use in my iPad app. I’m including it as part of my bundle resources, and telling the iOS about it through the UIAppFonts plist entry.
When I iterate over the list of available fonts returned by Font::findAllTypefaceNames(), I see the font name. So far, so good.
Unfortunately, when it comes time to use the font to draw, the call to CGFontCreateWithFontName ((CFStringRef) fontName) in MacTypeface is returning 0.
The only issue I can think of is that my font name isn’t the same as my typeface name, thus I really want to call CGFontCreateWithFontName() using “myFont Regular” or something like that.
Is there a clever way to figure out what the needed font name is, given the font?