Description: Text boxes draw errant kashida glyphs on top of other characters after a font change which reduces the number of lines in a justified paragraph. Steps to Reproduce: 1. Open the attachment. 2. Observe that the textbox has two lines of text, and kashida in the first line. 2. Select all text in the textbox, and change the font to B Nazanin. 3. Observe now that the textbox has one line of text, and kashida that overlap other characters. 4. Click off of the textbox. The stray kashida disappear. Actual Results: Kashida glyphs are drawn on top of other characters. Expected Results: The final line of the paragraph is not justified, so it should not contain any kashida glyphs. Reproducible: Always User Profile Reset: No Additional Info: Version: 24.2.5.2 (X86_64) / LibreOffice Community Build ID: d6e8b0f3fc6e8af2b00cf4969fd0d2fa45b9a62e CPU threads: 32; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Created attachment 196246 [details] Sample attachment This is the attachment to use while following the above instructions.
Confirming the issue with the latest LO 25.2 dev master: Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 691308125bf53dfde7f1735dc73467d55f6a5966 CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: CL threaded > Expected Results: The final line of the paragraph is not justified, so it should not contain any kashida glyphs. Please note that this is not limited to the last line of paragraph. As visible in attachment 183252 [details] when changing the font to "B Nazanin", the problem can happen anywhere, from last line to other middle lines of a paragraph.
Confirming the issue with the latest LO 25.2 dev master: Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 691308125bf53dfde7f1735dc73467d55f6a5966 CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: CL threaded > Expected Results: > The final line of the paragraph is not justified, so it should not contain > any kashida glyphs. Please note that this is not limited to the last line of paragraph. As visible in attachment 183252 [details] when changing the font to "B Nazanin", the problem can happen anywhere, from last line to other middle lines of a paragraph.
Jonathan Clark committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/6eb0523e27473fe2ebe281b2682a5045f3b39312 tdf#162803 editeng: Fix invalid kashida array after layout It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Jonathan Clark committed a patch related to this issue. It has been pushed to "libreoffice-24-8": https://git.libreoffice.org/core/commit/26fa1ac0d738d2c6de780545848abf10f823a9c0 tdf#162803 editeng: Fix invalid kashida array after layout It will be available in 24.8.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.