Skip to content

Instantly share code, notes, and snippets.

@ahmattox
Created October 30, 2012 15:56

Revisions

  1. ahmattox created this gist Oct 30, 2012.
    10 changes: 10 additions & 0 deletions ListFonts.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    - (void) listFonts {
    NSArray *familyNames = [UIFont familyNames];
    for (NSString *family in familyNames) {
    NSLog(@"family: %@", family);
    NSArray *styles = [UIFont fontNamesForFamilyName:family];
    for (NSString *style in styles) {
    NSLog(@" - %@", style);
    }
    }
    }