Following the instructions here, I'm trying to use custom fonts on my game. The custom font works okay in iOS device but not on the android device I'm testing on. I've made sure to include the font file (.ttf) on my project folder and I'm using this to set the font:
if(system.getInfo("platformName") == "Android") then
label = display.newText("text", 100, 100, customfonthere, 38)
end
However, when I run the game on the device, the custom font doesn't work. Is there something I might be missing here? I've also tried the font name with and without the file extension.
UPDATE: Actually, never mind. I guess my font file was damaged somehow. I just deleted it on the project folder and copied it from one of my backup files.