I created a very basic example:
var format = new TextFormat ("Roboto Bold", 20, 0x7A0026); var textField = new TextField (); textField.autoSize = TextFieldAutoSize.LEFT; textField.defaultTextFormat = format; textField.embedFonts = true; textField.text = str;
Which works as expected with Latin characters, however when I add Cyrillic text shows two “empty question mark” symbols per each character (which is 2 bytes);
I checked the same font in common html - it displays Cyrillic letters. Passing any kind of output of Utf8 class didn’t solve the issue.
Tracing Cyrillic strings shows correct character in the console.
The font is in ttf format. The issue reproduces in neko/html5/ios/mac.
Any help would be appreciated.
I’m new to Haxe/Openfl, so it might be a stupid question. However I’m about to implement a custom bitmap font to bypass the issue