9miao / CrossApp

Cross-Platform Mobile APP Development Engine
MIT License
838 stars 422 forks source link

CALabel crash because of font #101

Closed ghost closed 8 years ago

ghost commented 9 years ago

win32 project crash because CALabel doesnt have font

image

zhujnt commented 9 years ago

You must call this function(CAImage::getFontHeight) in the main thread.

ghost commented 9 years ago

its happend in hello world project. i just create and run project then it crash.

ghost commented 9 years ago

another problem is simhei.ttf is missing in window 10 lang English but its set default in CrossApp\platform\CAFreeTypeFont.cpp line 1049 strcat(sTTFont,"\fonts\simhei.ttf");