Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Enumerate all fonts on your IOS device with this convenience method. Handy to find the name for your custom font!
- (void)enumerateFonts {
NSLog(@"--Start enumerating font--");
for (NSString *fontFamilyStrings in [UIFont familyNames]) {
NSLog(@"Font family: %@", fontFamilyStrings);
for (NSString *fontStrings in [UIFont fontNamesForFamilyName:fontFamilyStrings]) {
NSLog(@"-- Font: %@", fontStrings);
NSLog(@"--End enumerating font--");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment