Haxe4.0 Cairo can't render Chinese

I used lime’s example TextRendering to get the wrong picture.

I need help, thank you ! @singmajesty

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

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

1 Like

Do you see any performance difference?

Does it work if you use addUTF16 instead?

Do you need this on all platforms or only some platforms?

Thanks :slight_smile:

Currently I only need to use this in Android / IOS. Performance has not changed much.