user437064
user437064

Reputation:

Use custom font

How to use custom font?(font that doesn't exist in iphone)

Upvotes: 3

Views: 2089

Answers (3)

Mak
Mak

Reputation: 46

Ex. Add the font files to your resource files Edit your Info.plist: Add a new entry with the key Fonts provided by application. For each of your files, add the file name to this array

First you can install a custom font in your app pick original font name then rename your font file name.

original font name [LblTwitter setFont:[UIFont fontWithName:@"The Great Escape" size:12]];

Note: this is available in iOS 4.0 and later.

Upvotes: 1

amar
amar

Reputation: 4345

You will have to include your font file in your project and update the keys in info.plist after that you can use that font by name see this link

Upvotes: 0

vfn
vfn

Reputation: 6066

Since you mention iphone-sdk-4.0 as one of your tags, it means that you can use the UIAppFonts key on your app. UIAppFonts was introduced on iOS 3.2.

The key to be added on your property list: http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW3

UIAppFonts description.

Upvotes: 5

Related Questions