Skip to content

Instantly share code, notes, and snippets.

@jeksys
Created May 10, 2011 13:50
Show Gist options
  • Save jeksys/964506 to your computer and use it in GitHub Desktop.
Save jeksys/964506 to your computer and use it in GitHub Desktop.
List Of Fonts in the system
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