Recently I release update of my game build with v3.15.1 and luckily some YouTuber picked up and review the game.
But the videos was a bit shocking to me as the font looks horrible and I’ve been scratching my head for few days trying to resolve this issue.
To reproduce this is very simple.
Create new JS project with v3.17
Drop my custom font FutureEx.ttf.zip (18.6 KB)
into the res folder, change the code in app.js to
var helloLabel = new cc.LabelTTF(“TEST”, “res/FutureEx.ttf”, 38);
Run cocos compile -p android --android --app-abi x86
To generate the apk
On my own device and one android emulator (Nexus 10 with API 24 - Graphics setting = Software - GLES 2.0) works totally fine.
No, please see the screen shot.
Don’t believe its a layout issue, I guess its more todo with some android version issue.
Its not ideal but ok to see the custom font turn into the default system font.
The biggest problem is if this happen, the default font display with top pixel cut off.
As if the font is still using the bonding box of the custom font. (see screen shot 2 on the original message)