iPhone Development: how to use custom fonts?

cocoa-touch, ios, objective-c

Solution

UIFont *font = [UIFont fontWithName:@"MyFont" size:20];
[label setFont:font];

Where "MyFont" would be a TrueType or OpenType file in your project (sans the file extension), and label would be an instance of UILabel.

Problem

I used a special font in my photoshop design, is it possible to use these fonts natively in the iphone app? or do I need to convert them into an image first? If this is the only way to do it, what do you do with dynamic text?

Original source

Related problems