Well i hav used this(1) guide as well as this(2)to use my custom font “Flavors-Regular”(you can search it on net) but i am unable to use it…
I am on a mac developing for iOS…desparately used versions 2.1.5 / 2.2.1 / 3.0 for this to be working…but to no relief…
i have updated my Info.plist with “fonts/Flavors-Regular.ttf”…
i have used this code to use the font in a label :
For a reason I do not know, iOS is finicky with fonts name. It has to match what’s shown in FontBook (try to open the ttf then install the font. It should give you warnings. If you open the font, you should see the “real name” iOS wants).
For a reason I do not know, iOS is finicky with fonts name. It has to match what’s shown in FontBook (try to open the ttf then install the font. It should give you warnings. If you open the font, you should see the “real name” iOS wants).
iOS (as any OS) package some default fonts. You don’t want to use them for a cross-platform project, because it varies by device (it’s always better to include your tff. That way no surprise).
I renamed it “Helvetica Neue LT Pro.ttf”. Works perfectly. Did you try with that file name ? Is the font included in your project ? Not only in the Resources folder, but in the right panel “target membership” in Xcode.
You can rename the file name easily. Changing what you call the PostScript name (didn’t know the name), on the other hand, may be me complicated, since you have to edit the ttf file directly.