I have a font called "Sansumi-Ultralight". This is what I've done so far based on some tutorials:
1.Dragged the font (.ttf file) into my app
2.Add "UIAppFonts" in info plist. Add the name Sansumi-Ultralight in the field.
3.Use it by doing this : UILabel.font = [UIFont fontWithName:@"Sansumi-Ultralight" size:14];
It doesn't work. I tried to do prove-of-principle by replacing the font name with helvetica-ultralight and it also doesn't work. (Which is a second problem. I can't seem to use the other versions (italics,ultralight ..etc) built-in fonts, such as helvetica)
I wonder what I did wrong. Can someone help me?
Thanks.
I think you forgot to include your font file in TestApp target membership
You see this http://tinypic.com/view.php?pic=b7h11i&s=5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With