Created
April 30, 2013 12:45
-
-
Save wouterds/5488474 to your computer and use it in GitHub Desktop.
Enumerate loaded fonts in Objective-C
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
- (void)enumerateFonts { | |
NSLog(@"[AppDelegate.enumerateFonts] Start enumerating fonts"); | |
for(NSString *fontFamilyStrings in [UIFont familyNames]) { | |
NSLog(@"[AppDelegate.enumerateFonts] Font family: %@", fontFamilyStrings); | |
for(NSString *fontStrings in [UIFont fontNamesForFamilyName:fontFamilyStrings]) { | |
NSLog(@"[AppDelegate.enumerateFonts] Font: %@", fontStrings); | |
} | |
} | |
NSLog(@"[AppDelegate.enumerateFonts] End enumerating fonts"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment