Created
September 1, 2014 19:35
-
-
Save tapthaker/4a22d0cf866fae337963 to your computer and use it in GitHub Desktop.
Print all fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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