Skip to content

Instantly share code, notes, and snippets.

@wtsnz
Created November 17, 2014 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtsnz/57f649e096778b35701f to your computer and use it in GitHub Desktop.
Save wtsnz/57f649e096778b35701f to your computer and use it in GitHub Desktop.
Print out font families
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