Skip to content

Instantly share code, notes, and snippets.

@jarretmoses
Created July 14, 2017 14:40
Show Gist options
  • Save jarretmoses/b80e55f6cf25c7e32dafc05608c6fdc7 to your computer and use it in GitHub Desktop.
Save jarretmoses/b80e55f6cf25c7e32dafc05608c6fdc7 to your computer and use it in GitHub Desktop.
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