Created
September 10, 2012 17:45
-
-
Save haraken3/3692458 to your computer and use it in GitHub Desktop.
Listing available fonts in RubyMotion
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
# 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