Haxe4.0 Cairo can't render Chinese

for(i in 0...text.length)
    __hbBuffer.add(text.charCodeAt(i),i);
//__hbBuffer.addUTF8(text, 0, -1);

I modified the implementation of 144 lines of TextLayout and can display Chinese normally.

1 Like