UIFont From File?

Sage
Posts: 1,066
Joined: 2004.07
Post: #1
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?
Quote this message in a reply
Sage
Posts: 1,066
Joined: 2004.07
Post: #2
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.
Quote this message in a reply
Moderator
Posts: 3,574
Joined: 2003.06
Post: #3
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.
Quote this message in a reply
Moderator
Posts: 3,574
Joined: 2003.06
Post: #4
Here's a link to Apple with a list of keys: http://developer.apple.com/documentation...tKeys.html

Looks like ATSApplicationFontsPath would be the one to try.

[adding] I have no idea if this is valid for iPhone as well
Quote this message in a reply
Post Reply