Unicode and TextField

So, I’ve switched from Haxe 3.4.7 to 4.0.5 and my Unicode stopped working on Android, broken Cyrillic and symbols like :clubs: are not displaying anymore.
Font is regular Arial, embedded.
What am I missing here?

1 Like

Fix is here: https://github.com/openfl/openfl/issues/2264
But not in OpenFL 8.6.9 yet…

It’s scary to release an update, never know what other bugs will show up.


For people reading this thread : It still doesn’t work on desktop (linux, windows) and nowhere for arabic

Have you tried this for desktop:
__hbBuffer.addUTF16(untyped __cpp__('(uintptr_t){0}', text.wc_str()), text.length, 0, -1);
I’ve tested and had no problems with Arabic on Android.

Same problem, same fix for iOS.

Thanks . I’m going to test tomorrow :slight_smile:

In fact I already had this code. So I updated haxe, but I still have the problem. I wonder why it works for you but not for me.

Do you use the font by default ?

Hey, sorry for late reply.
I’m using my font, regular Arial, embedded.

I tried it, and It works on Mac and iOS.
Thank you.

haxe 4.1.1
hxcpp: 4.1.1
lime: 7.7.0
openfl: 8.9.6