Reputation: 1301
So I'm having a couple of problems actually. The first is that I want to use a "Font Suitcase" file as a custom font in an iOS app and haven't been able to get it to work. Not only that, but I haven't been able to properly use a .ttf file either. Here are the steps that I've taken to try and make it work:
I also used the code found here to see if the font was even being loaded and it doesn't appear either. This applies for both ttf and font suitcase files.
Any idea what I'm doing wrong?
Thanks, Pete
Upvotes: 3
Views: 2837
Reputation: 7238
You have to add your fonts as resources.
So do the following steps:
With this and the code you posted you should now be able to load custom fonts
Upvotes: 10
Reputation: 7358
Double click on the TTF file in Finder. Look at the title bar. The name inside preview has to be exactly the same as what is in your quote [UIFont fontWithName:@"" size:20.0];
It's case sensitive.
Upvotes: 2