Skip to content

Instantly share code, notes, and snippets.

@tapthaker
Created September 1, 2014 19:35
Show Gist options
  • Save tapthaker/4a22d0cf866fae337963 to your computer and use it in GitHub Desktop.
Save tapthaker/4a22d0cf866fae337963 to your computer and use it in GitHub Desktop.
Print all fonts
NSArray *fontFamilies = [UIFont familyNames];
for (int i = 0; i < [fontFamilies count]; i++)
{
NSString *fontFamily = [fontFamilies objectAtIndex:i];
NSArray *fontNames = [UIFont fontNamesForFamilyName:[fontFamilies objectAtIndex:i]];
NSLog (@"%@: %@", fontFamily, fontNames);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment