Open ElhamAryanpur opened 11 months ago
I am actually quite excited for this, because it shows that RTL languages do work. I've been waiting for an RTL support in immediate mode UIs for so long...
it also appears that labels work as well as inputs, so this is even better!
hmm appears that it only works on widgets with advanced text shaping
after a bit of more testing, I think the issue for it not displaying is that the RTL text is sent out of bounds: As seen here, I think the RTL text is sent to RTL, and the bounding stays on LTR.
What I mean is, with latin text, the bounds for displaying the text is set to the left side, so when pure RTL is written, the display stays on left side, but the text moves to the right alignment. That's also why when adding a latin letter, the alignment changes again, letting the text to be displayed...
I do not know the internals of Iced very much, and am a beginner, so if this sounds idiotic or if already is known, apologies beforehand. This is just my assumption from testing
This is waiting on https://github.com/pop-os/cosmic-text/issues/70.
Also @nicksenger came up with a workaround for the time being: #2016. But should be unnecessary once cosmic-text
can figure out the bounds by itself.
Also @nicksenger came up with a workaround for the time being: #2016. But should be unnecessary once
cosmic-text
can figure out the bounds by itself.
Oh NEAT! I did see it but will check it out. Thank you! I'm excited for cosmic-text personally too, it's gonna bring a whole suite of improvements in the ecosystem
Is there an existing issue for this?
Is this issue related to iced?
What happened?
So I was checking around and saw that Cosmic-text have been added to iced, and because of that I thought RTL languages are supported now. So I started checking some demos if that's true and...
When writing in RTL language, they are not displayed:
HOWEVER! When you add a latin letter or text in addition, it starts displaying correctly and the language using correct glyphs too:
From my tests, only latin letters works, so special characters and such does not make it display.
What is the expected behavior?
It should correctly display without need for latin letters.
Version
master
Operating System
Linux
Do you have any log output?