Custom Fonts For IOS 5

I posted an answer on StackOverFlow recently that I think will be helpful for the the rest of you IOS developers. It’s regarding how to place custom fonts on your labels and textfields in IOS 5.

Here’s the resource I used to learn about this.


However, the trickiest part for me is finding the correct font name. So try this:

for the font “MuseoSans” I added MuseoSans_700.otf to my plist (in the respective spot)


{syntaxhighlighter brush: bash;fontsize: 100; first-line: 1; }NSLog(@”%@”, [UIFont fontNamesForFamilyName:@”Museo Sans”]);
// the line above gives you eligable font names eg. MuseoSans-700

// example usage
UIButton *myButton = [[UIButton alloc] init];
myButton.titleLabel.font = [UIFont fontWithName:@”MuseoSans-700″ size:16];{/syntaxhighlighter}


Leave a comment

Your email address will not be published. Required fields are marked *