views:

141

answers:

1

hi all,

please tell me how to add new font to iphone xcode3.2.

thanks in advance.

+1  A: 

This functionality isn't built into UILabel/UIFont in iOS < 3.2. But there is a third-party solution you can use: FontLabel

In iOS 3.2+, there's the UIAppFonts plist key!

Just do this before using it: add your font file (such as myfont.ttf) to your project, then edit the Info.plist like so:

info.plist

jtbandes
but i want to use UIAppFonts you have any idea how to use way
priyanka
i use this approach but when i load font using below codeUIFont *myF = [UIFont fontWithName:@"my font name" size:12];myF is return null;
priyanka
I would think that the name is wrong or the file isn't getting included in the project. There's a good post about this here: http://www.perfectline.co.uk/blog/uiappfonts-custom-fonts-with-the-iphoneipad-3-2-sdk
bjtitus