UIFont From File? - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: UIFont From File? (/thread-1953.html)
UIFont From File? - Nick - Jan 6, 2009 08:11 AM
Is it possible to load a UIFont from file to use for my UI? Or are we just stuck with the fonts available on the device? I was hoping to use a UILabel for displaying some data because I will be changing it during gameplay, but I also want to be able to use a custom font I have. Can it be done?
UIFont From File? - Nick - Jan 6, 2009 01:04 PM
Hm, never mind. Seems like at least the font I want I can set in IB and it will show up just fine on the phone.
UIFont From File? - AnotherJake - Jan 6, 2009 05:16 PM
OSC said you just need to add a key in the Info.plist which points to your font. I haven't tried it myself yet on either Mac or iPhone, but I figured it was worth mentioning in case you change your mind.
UIFont From File? - AnotherJake - Jan 6, 2009 05:21 PM
Here's a link to Apple with a list of keys: http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html
Looks like ATSApplicationFontsPath would be the one to try.
[adding] I have no idea if this is valid for iPhone as well