Skip to content

Instantly share code, notes, and snippets.

@yairsz
Created October 17, 2018 20:41
Show Gist options
  • Save yairsz/8be33a817398d69d4d8270c971c317ca to your computer and use it in GitHub Desktop.
Save yairsz/8be33a817398d69d4d8270c971c317ca to your computer and use it in GitHub Desktop.
print font family names
// List all fonts on iPhone
NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
for (NSString *family in familyNames) {
NSLog(@"Family name: %@", family);
NSArray * fontNames = [UIFont fontNamesForFamilyName: family];
for (NSString *font in fontNames) {
NSLog(@" Font name: %@", font);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment