Reputation: 1066
I am trying to install my custom font for my app. I alreayd donde this many of times, but with this font I don't know why it doesn't work
Note: My info.plist its correct with the file Geometry Soft Pro.ttf
Font file: Geometry Soft Pro.ttf
I already try the code with:
My code:
[nivel.titleLabel setFont:[UIFont fontWithName:@"Geometry Soft Pro" size:42]];
Font info:
Here is my info.plist
Upvotes: 1
Views: 1864
Reputation: 2383
I had the same issue but none of this helped me, i change the Fonts provided by application with UIAppFonts and it works , even if the .ttf file name is different from the font name.
Upvotes: 1
Reputation: 2783
Check if font file is added in "Copy bundle resources" under project settings-> Build phases. Also install the font in MAC & use the same name (with / without spaces in between) in your iOS code. Let me know if it works for you.
Upvotes: 0
Reputation: 1140
Please remove the white spaces from the font file name. And change name in info.plist file. Thats all. Happy Coding :)
Upvotes: 4