Bug 153966 - RTL characters 'fidget' as additional characters entered in same text run
Summary: RTL characters 'fidget' as additional characters entered in same text run
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL Font-Rendering
  Show dependency treegraph
 
Reported: 2023-03-04 18:03 UTC by Eyal Rozenberg
Modified: 2023-03-18 17:54 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenscast of the text "fidgeting" as I type it in (343.42 KB, video/x-matroska)
2023-03-04 18:03 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-03-04 18:03:41 UTC
Created attachment 185750 [details]
Screenscast of the text "fidgeting" as I type it in

To reproduce:

1. Start LO Writer
2. Create a new document
3. Set the paragraph direction to RTL
4. Set the alignment to Right
5. Set your keyboard input language to Hebrew
6. Start typing text (it's enough if you simply paste the letter ש again and again

Expected results:

As new ש characters are added to the left of the sequence of existing characters, the sequence itself does not change nor move.

Actual results:

many/most letters in the sequence - including very far away from its left edge - move slightly, back and forth with consecutive keystrokes - they "fidget", as if some tie is broken regarding how to render them, once to one side then to the other and back again. There doesn't seem to be an obvious cycle - I think I notice a "slide" back after 3-4 tiny movements in a single direction, but I can't tell for sure.

Experienced with:

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: qt5 (qfont+xcb)
Locale: en-IL (en_IL); UI: en-US
Calc: CL threaded

and also with VCL: gtk3


Note: When the text run ends - e.g. due to getting to a new line, or typing in some LTR text - the fidgeting stops for the characters in the earlier run, and only occurs for the characters in the new text run.
Comment 1 Eyal Rozenberg 2023-03-04 18:07:14 UTC
This seems to also happens in Arabic. For the text, try tying ف and then غ repeatedly (or pasting the former and then the latter if you can't type in Arabic).
Comment 2 ⁨خالد حسني⁩ 2023-03-18 17:50:06 UTC
I can reproduce this but to a much smaller degree (probably depends on the DPI), but I have no idea what is going on. Looks like something Caolán McNamara might know about.
Comment 3 Eyal Rozenberg 2023-03-18 17:54:27 UTC
Well, if Khaled can reproduce - even if fidgeting is not as pronounced - then marking as NEW. Also, +Caolan.