Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to place inside AppDelegate.m to print out actual font names in your iOS (and React Native) project
for (NSString *familyName in [UIFont familyNames]){
NSLog(@"Family name: %@", familyName);
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"--Font name: %@", fontName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment