haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
347 stars 72 forks source link

bidi problem #477

Open yzn-h opened 2 years ago

yzn-h commented 2 years ago

when i type "اسمي yzn كيف الحال"(github is bad at bidi to lol) in a text area it is displayed wrong haxeui: image

gtk text area: image

Expected Behavior

the text should be like this image

godot 4 has good implementation

Current Behavior

displaying the Arabic word correctly but treats the sentence as a LTR sentence

Possible Solution

Steps to Reproduce (for bugs)

  1. make a textarea
  2. type "اسمي yzn كيف الحال"

Media

Test app / minimal test case

Context

Your Environment

ianharrigan commented 2 years ago

Hi,

which backend is this?

Cheers, Ian

ianharrigan commented 2 years ago

Also, when you get a moment, can you run this: https://try.haxe.org/#a91BcFe5

and let me know what the results are, for example i get: direction: ltr, writing mode: horizontal-tb

Also, what about the rest of haxeui? Ie, not just the textinputs... what about, for example, thats items in a listview?