Skip to content

Instantly share code, notes, and snippets.

@jonswaff
Created July 31, 2014 15:14
Show Gist options
  • Save jonswaff/d1f9c36a6a8ab319d04d to your computer and use it in GitHub Desktop.
Save jonswaff/d1f9c36a6a8ab319d04d to your computer and use it in GitHub Desktop.
Print all fonts available in XCode project. Handy for double-checking names of custom-added fonts
for family in UIFont.familyNames() {
println(family)
for fname in UIFont.fontNamesForFamilyName(family as String) {
println(" " + (fname as String))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment