Skip to content

Instantly share code, notes, and snippets.

@haraken3
Created September 10, 2012 17:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haraken3/3692458 to your computer and use it in GitHub Desktop.
Save haraken3/3692458 to your computer and use it in GitHub Desktop.
Listing available fonts in RubyMotion
# original Obj-C code by http://www.kuma-de.com/blog/2012-05-27/3544
UIFont.familyNames.each do |familyName|
NSLog("--- family name: %@", familyName)
UIFont.fontNamesForFamilyName(familyName).each do |fontName|
NSLog(" font name: %@", fontName);
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment