Skip to content

Instantly share code, notes, and snippets.

@kyleturner
Created January 8, 2012 07:26
Show Gist options
  • Save kyleturner/1577584 to your computer and use it in GitHub Desktop.
Save kyleturner/1577584 to your computer and use it in GitHub Desktop.
Grab all font family names within the system
// Get all the fonts on the system
NSArray *familyNames = [UIFont familyNames];
for( NSString *familyName in familyNames ){
printf( "Family: %s \n", [familyName UTF8String] );
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
for( NSString *fontName in fontNames ){
printf( "\tFont: %s \n", [fontName UTF8String] );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment