Maybe somewhat related to this topic:
I`m using a TTF font in my project and when I build a native macOS app, the app crash.
When I run the preview in Simulator I get the following error related to CCFontAtlas.cpp:
Assertion failed: (width <= _WIDTH && height <= _HEIGHT), function append, file /Users/nantas/jenkins/workspace/Creator_2D/cocos2d-x-lite/mac/cocos2d-x-lite/cocos/2d/CCFontAtlas.cpp, line 88.
I would like to point out I don’t have a user called ‘nantas’ on my system, not sure how is that supposed to be working.
When I run a preview in web browser or build a web app, it works.
If I remove the TTF font and use a system font, it is also solve the problem.
Is there any solution to this or I should just stop using TTF fonts all together?
If that so, what sort of fonts works best with Cocos Creator?
Using Cocos Creator 2.4.3 on macOS Catalina 10.15.7