Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL issue when FlowDirection set to RightToLeft #401

Open
adirh3 opened this issue Feb 27, 2024 · 4 comments
Open

RTL issue when FlowDirection set to RightToLeft #401

adirh3 opened this issue Feb 27, 2024 · 4 comments

Comments

@adirh3
Copy link

adirh3 commented Feb 27, 2024

When using RTL text with FlowDirection = FlowDirection.RightToLeft the text is displayed inversed.
How it should look (works with TextBox) -
image

How it is with TextEditor -
image

To reproduce -

<ave:TextEditor Text="בדיקה בעברית" FlowDirection="FlowDirection.RightToLeft" />

Thanks!

@danipen
Copy link
Collaborator

danipen commented Feb 27, 2024

Cc @Gillibald

@Gillibald
Copy link
Contributor

Looks like VisualLines have a mirror transform applied

@adirh3
Copy link
Author

adirh3 commented Feb 27, 2024

FYI it happens with English text as well, it just flips everything I guess

@Mop1398
Copy link
Contributor

Mop1398 commented Aug 3, 2024

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. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants