Created
May 10, 2011 13:50
-
-
Save jeksys/964506 to your computer and use it in GitHub Desktop.
List Of Fonts in the system
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 *names = [UIFont familyNames]; | |
for (NSString *fontName in names) { | |
NSLog(@"%@:", fontName); | |
NSArray *fontnames = [UIFont fontNamesForFamilyName:fontName]; | |
for (NSString *fontNameinFamily in fontnames) { | |
NSLog(@"-->%@", fontNameinFamily); | |
} | |
} | |
// todo: | |
// sort by name | |
// wrap to a method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment