Last active
January 5, 2023 22:47
-
-
Save jpavley/6567674 to your computer and use it in GitHub Desktop.
Iterate through all the fonts families and fonts in an iOS device and print their names to the console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *fontFamilyNames = [UIFont familyNames]; | |
for (NSString *familyName in fontFamilyNames) { | |
NSLog(@"Font Family Name = %@", familyName); | |
NSArray *names = [UIFont fontNamesForFamilyName:familyName]; | |
NSLog(@"Font Names = %@", names); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment