Bug 155704 - Part of the text falls out of the box borders for Arabic/Persian text with a fallback font
Summary: Part of the text falls out of the box borders for Arabic/Persian text with a ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Fallback RTL CTL
  Show dependency treegraph
 
Reported: 2023-06-06 09:49 UTC by Hossein
Modified: 2024-08-03 09:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Text box with Persian text and Lohit Devanagari font (13.22 KB, application/vnd.oasis.opendocument.text)
2023-06-06 09:49 UTC, Hossein
Details
RTL & LTR text boxes with text overlapping edges in Farsi, Hebrew & English (30.12 KB, application/vnd.oasis.opendocument.text)
2024-08-02 22:55 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2023-06-06 09:49:12 UTC
Created attachment 187744 [details]
Text box with Persian text and Lohit Devanagari font

Description:
Part of the text falls out of the box borders for Arabic/Persian text with a fallback font

Steps to Reproduce:
1. Open ODT attachment
2. Click on the text to see the text box borders

Actual Results:
Part of the text falls out of the text box borders. Please note that this is a different issue from tdf#152142:

Bug 152142 - RTL Text sometimes falls out of the text box
https://bugs.documentfoundation.org/show_bug.cgi?id=152142

Expected Results:
Text should remain inside the text box borders, even when a fallback font is used.

Reproducible: Always


User Profile Reset: No


Additional Info:
Reproducible with the latest LO 7.6 dev master:
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 244f9cf66bc36f229ccb5712bc8d80166b92266d
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Not reproducible with the LO 7.5 official binaries:
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 ⁨خالد حسني⁩ 2023-06-07 16:09:32 UTC
I can reproduce with 7.5 as well. It happens only when the font that does not support Arabic is installed, using the name of an existent font does not show the issue.
Comment 2 Eyal Rozenberg 2024-08-02 22:55:27 UTC
Created attachment 195674 [details]
RTL & LTR text boxes with text overlapping edges in Farsi, Hebrew & English

Expanded the previous "version" of the example document  to more languages and directions - with the problem showing just the same. Also, marked the border around the frame so the overlap is more visibile.

Bug manifest with:

Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Comment 3 Eyal Rozenberg 2024-08-02 22:56:21 UTC
Bug still manifests with:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 01e6e4303e5a9966f102e0357fe0354a2f74a1c4
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US

as well.
Comment 4 Eyal Rozenberg 2024-08-02 23:00:27 UTC
Wait a minute... these boxes have Properties > Text Attributes > Spacing to Border of -0.15cm ! So the overlap is actually intended! 

So, I believe this is not NOTABUG. (Please argue why it is, if you decide to reopen.)