4

I searched for a way to add my custom font to iphone app and I was successful in some cases. but in my case I want to import "Helvetica Condensed Black" which in the Helvetica family but it is neither mac's native nor iPhone's.

when I open the font in the finder I find a file named : "Helv Condensed" with no extension. I went through and added this file to my resources and also to plist. the same way that I did with the other font which had .tff extension and it was a successful attempt.

so question is how should I add this font which is in helvetica font family but not iphone native to my application. Also is there any way to add these fonts to interface builder?

thank you.

Snips
  • 6,575
  • 7
  • 40
  • 64
Saeid Farivar
  • 1,667
  • 24
  • 43

1 Answers1

4

You have to add it to the UIAppFonts key in your app's info.plist, and then you can use it in code, you can't add it to Interface Builder directly.

I found this post quite helpful Can I embed a custom font in an iPhone application?

Community
  • 1
  • 1
crackity_jones
  • 1,077
  • 2
  • 13
  • 16
  • thank you for your reply. I can add a custom font to my application. but the problem is that I am not sure why this certain font which doesn't have a extension is not working! – Saeid Farivar Sep 17 '11 at 18:48
  • I found this part particularly helpful because I had a font that had a different name than its filename http://kgriff.posterous.com/45359635 – crackity_jones Sep 18 '11 at 00:31