Use custom font

How to use custom font? (font that does not exist on iphone)

+3
source share
3 answers

Since you mention iphone-sdk-4.0as one of your tags, this means that you can use the key UIAppFontsin your application. UIAppFontswas introduced in iOS 3.2.

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

UIAppFontsdescription .

+5
source

Ex. Info.plist: , .

, .

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

: iOS 4.0 .

+1

You will need to add a font file to your project and update the keys in info.plist, after which you can use this font by name, see the link

0
source

Source: https://habr.com/ru/post/1765555/


All Articles