Text not displaying on real device

Hi community I’m facing a simple problem that I can’t seem to find out. Ok the problem is in my main menu theres level to select. In each level i put 1, 2, 3… on each level using display.newText. When I build for my device the text would not show but the game would run perfectly fine. The text does show in the simulator but not on the real device what could be?

Also I’m using Build 704 [import]uid: 17058 topic_id: 20168 reply_id: 320168[/import]

A quick guess would be to make sure that the font you are trying to use is supported on the device. An easy way to test this is to pass the constant native.systemFont to the display.newText function instead of the font you are currently using.

I use the following error checking logic to validate font names:

function CreateFont( font\_name, size ) local available\_fonts = native.getFontNames() local font\_found = false for index,font in pairs(available\_fonts) do if font == font\_name then font\_found = true break end end if not font\_found then font\_name = native.systemFont print("### SCRIPT ERROR ### font: " .. font\_name .. " not found, using native.systemFont instead!") end local my\_font = display.newText("",0,0,font\_name, size) return my\_font end [import]uid: 100558 topic_id: 20168 reply_id: 78781[/import]

Licensing

your actually right because when I was testing on my IOS using font “Arial Black” it did not show. So instead I switch to “Arial” and it worked thanks for help

:slight_smile: [import]uid: 17058 topic_id: 20168 reply_id: 78785[/import]