Add Font to iOS
http://tetontech.wordpress.com/2010/09/03/using-custom-fonts-in-your-ios-application/
1) Add the .TTF or .OTF font file/s you wish to use as a resource
2) Open your info.plist and create a new key called UIAppFonts or "Fonts provided by application"
, set the key to be an array type.
3) For each font you want to use in your app, add it as a new object in the array with its full name and extension and save the info.plist when finished
4) Now in your code you can simply call
[UIFont fontWithName:@"Insert font name here" size:18]
1) Add the .TTF or .OTF font file/s you wish to use as a resource
2) Open your info.plist and create a new key called UIAppFonts or "Fonts provided by application"
, set the key to be an array type.
3) For each font you want to use in your app, add it as a new object in the array with its full name and extension and save the info.plist when finished
4) Now in your code you can simply call
[UIFont fontWithName:@"Insert font name here" size:18]
Comments
Post a Comment