Eduardo Iglesias
Eduardo Iglesias

Reputation: 1066

Custom Font iOS doesn't showing

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:

enter image description here

Here is my info.plist enter image description here

Upvotes: 1

Views: 1864

Answers (3)

Constantin Saulenco
Constantin Saulenco

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

iOSAppDev
iOSAppDev

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

shivam
shivam

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

Related Questions