Created
February 5, 2016 17:00
-
-
Save UjwalManjunath/428260088b335f51c9a2 to your computer and use it in GitHub Desktop.
Print all fonts: IOS - Swift 2.1
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
func printFonts() { | |
let fontFamilyNames = UIFont.familyNames() | |
for familyName in fontFamilyNames { | |
print("------------------------------") | |
print("Font Family Name = [\(familyName)]") | |
let names = UIFont.fontNamesForFamilyName(familyName) | |
print("Font Names = [\(names)]") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment