9miao/CrossApp

CALabel crash because of font

Opened this issue · 3 comments

win32 project crash because CALabel doesnt have font

image

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

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

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");