iOS engineer who likes clean, simple designs and sans-serif.

Loading

Get Font Family Names

Here’s some really useful code to sort and list all the known font family names for iOS.

    for (NSString* family in [[UIFont familyNames] sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)]){
        NSLog(@"%@", family);  
        for (NSString* name in [UIFont fontNamesForFamilyName: family]) {
            NSLog(@"  %@", name);
        }
    }

Leave a Comment