Font named "Ravie" is not working on SKS

Hi guys.


I am trying to use "Ravie" font name in a SKS file but, altough it is available during the design process, it's not working when I run the app.


Do you know what is the name of this font type so I can use it with:


SKLabelNode(fontNamed: NAMEOFTHERAVIE)


Thanks.

You can't use a font that isn't on the device. As far as I am aware, there is no font called "Ravie" on iOS devices or OS X devices by default, which means that you will either need to pick one of the existing fonts, or figure out how to include it with your app (which might be sketchy depending on the license for the font).


So the easiest thing to do is to just use an existing font. You can get a list of all the fonts available on iOS - plus the correct font name to use in the SKLabelNode initializer - at http://iosfonts.com.


Embedding the font in your app is more difficult, but here's a Stack Overflow article that explans how - http://stackoverflow.com/questions/27937772/spritekit-os-x-how-to-use-custom-fonts#27951184

In your info.plist file, you need to include entries for any non system fonts you include. The array key is "Fonts provided by application" (UIAppFonts) and the value is the name of the font file, including the extension.


You need to also ensure that you include the actual fonts as a resource that gets copied to the device.


Cheers.

Font named "Ravie" is not working on SKS
 
 
Q