Created
January 8, 2012 07:26
-
-
Save kyleturner/1577584 to your computer and use it in GitHub Desktop.
Grab all font family names within the system
This file contains hidden or 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
// 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