Created
April 15, 2016 18:07
-
-
Save hanksudo/3a2e543be706532ddec52e68d3b96b1d to your computer and use it in GitHub Desktop.
List all supported fonts on iOS
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 (familyName) in UIFont.familyNames() { | |
print("\nFamily: ", familyName.utf8) | |
let fontNames = UIFont.fontNamesForFamilyName(familyName) | |
for (fontName) in fontNames { | |
print("\tFont: ", fontName.utf8) | |
} | |
} |
Author
hanksudo
commented
Apr 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment