Dev Platform: Windows
Target OS: Android
Build: 696
I have a font called nobile.ttf. It is in the project folder and has been installed in the Windows font folder.
According to the documentation, the full filename is necessary for Android:
display.newText("HELLO WORLD",0,0,"nobile.ttf",28)
However, when I run it in the simulator even with View As set to an Android device, I get a “could not load font” warning. BUT, if I replace this line with:
display.newText("HELLO WORLD",0,0,"Nobile",28)
…it works fine in the simulator for Android devices, even though, according to the docs, it would not load the font on a phone.
Am I right in thinking that the simulator does not work correctly in this way for Android? In other words, if I were to build for an Android phone, I’d need to put the “ttf” on the end even though it throws an error in the simulator? So, every time I want to test on a device, I have to change the font names?
[import]uid: 95579 topic_id: 18402 reply_id: 318402[/import]