Last active
August 7, 2017 23:36
-
-
Save zrkb/038f017d3c6ec31befb6 to your computer and use it in GitHub Desktop.
Print Family Fonts
This file contains hidden or 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
| for (NSString *familyName in [UIFont familyNames]){ | |
| NSLog(@"Family Name: %@", familyName); | |
| for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) { | |
| NSLog(@"Font Name: %@", fontName); | |
| } | |
| NSLog(@"\n\n"); | |
| } |
This file contains hidden or 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
| UIFont.familyNames.forEach { (familyName: String) in | |
| print("Family Name: \(familyName)") | |
| UIFont.fontNames(forFamilyName: familyName).forEach({ (fontName: String) in | |
| print("\tFont: \(fontName)") | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment