AvaloniaEdit
AvaloniaEdit copied to clipboard
RTL issue when FlowDirection set to RightToLeft
When using RTL text with FlowDirection = FlowDirection.RightToLeft
the text is displayed inversed.
How it should look (works with TextBox) -
How it is with TextEditor -
To reproduce -
<ave:TextEditor Text="בדיקה בעברית" FlowDirection="FlowDirection.RightToLeft" />
Thanks!
Cc @Gillibald
Looks like VisualLines have a mirror transform applied
FYI it happens with English text as well, it just flips everything I guess
we currently are working on some RTL project and tried to use AvaloniaEdit in that matter . @adirh3 i recommend you check up the RTL branch of https://github.com/ablibrary-net/AvaloniaEdit . we might aswell PR if it feels stable .
current issues in our RTL branch :
- Selections of texts not being shown correctly
- any mix RTL LTR might get unstable results
- ... we only have intention of plain text viewing (books , texts , etc. )