Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.10
-
None
-
ArchLinux 64bit
Description
When using a QTextEdit or a QTextLayout to render some bidi text, the cusror position isn't accurate in some conditions.
Taking a text that starts with an English letter, and continues with Arabic words:
t تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة تجربة
or the opposite:
ت test test test test test test test test test test test test test test test test test test
You will notice that (in QTextEdit, word wrapping is on) the cursor in the first lines is misplaced and appears on the letter, and dragging the cusror to left or right will select a different letter than desired. While in the last wrapped line the cursor is correctly placed.
Attached several pictures showing wrong positioning of cursor.
The same happens with QTextLayout which other advanced text editors use for layouting text (Kate for example)