Last active
May 11, 2016 14:55
-
-
Save dfelber/bdb1e18416fc86665b6571071dfade01 to your computer and use it in GitHub Desktop.
Prints a list of all available fonts
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
import UIKit | |
for family: String in UIFont.familyNames() { | |
print("\(family)") | |
for names: String in UIFont.fontNamesForFamilyName(family) { | |
print("\t\(names)") | |
} | |
print("") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment