public
Created

Retrieve a list of all fonts available on the iPhone.

  • Download Gist
gistfile1.m
Objective-C
1 2 3 4 5 6 7 8 9 10
NSArray *familyNames = [UIFont familyNames];
for (NSString *familyName in familyNames)
{
NSLog(@"Family: %@\n", familyName);
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
for (NSString *fontName in fontNames)
{
NSLog(@"\tFont: %@\n", fontName);
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.