In my game,font looks different on simulator and mobile.I put the same specifications of phone (Honor 9i) in simulator.But the phone output (font) is weird.
Seems to me that the font isn’t loaded and that Corona defaults to default system font.
The filenames are cAsE SeNsItiVE on Android, so make sure that the filename in code matches exactly to the file in the project folder, this includes the file type, e.g. “.TTF” vs .“ttf”.
Just to be thorough, would you add this piece of code anywhere in your project:
local path = system.pathForFile( "a.ttf", system.ResourceDirectory ) local fhd = io.open( path ) print( fhd )
Do you get an error or a warning message like this: “WARNING: case of filename ‘…long path name…/a.ttf’ differs on disk”, or do you just get a print that reads something like “file (6CA1E080)”?