Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

skipday

macrumors newbie
Original poster
Mar 14, 2011
4
0
I am developing iPhone application and want to use custom fonts in the navigation title. I have used custom fonts in the design and text is dynamic so I could not use jpg file.

I tried to add custom fonts in my application and trying to load that font in iPhone apps to display custom navigation title.

I search Google but did not find any proper solution. Can someone help me how I can achieve?

Thanks in advanced.
 
Re:

If you are using iOS 4.0 then you can load using then follow below steps.

1. Add custom font file into your iPhone apps.
2. Add a key to your info.plist file called UIAppFonts.
3. Make this key as an array
4. For each font you have, enter the full name of your font file (including the extension) as items to the UIAppFonts array
5. Save info.plist
6. Now in your application you can simply call [UIFont fontWithName:mad:"CustomFontName" size:12] to get the custom font to use with your UILabels and UITextViews

If you are using iOS lower than 4.0 then iPhone only support fonts which is listed here.
iPhone supported fonts: http://iosfonts.com/

Even you can use custom font but you need to use custom font library.
for custom fonts: https://github.com/zynga/FontLabel
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.