cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.12k stars 7.05k forks source link

CCLabel systemfont Helvetica not found on Android #20016

Open imtrobin opened 5 years ago

imtrobin commented 5 years ago

I noticed on Android logcat, it will spew a lot of warning about

cocos2d: fullPathForFilename: No file found at Helvetica. Possible missing file.

I had to change the system font to point a local font in Resource folder in this format

"fonts/arial.ttf"

gestern commented 5 years ago

@imbahom You can use Comic Sans for this.

imtrobin commented 5 years ago

This is the _systemfont defined in cocos2dx CCLabel.cpp line 486 and CCControlButton.cpp line 68, not my code.