Bug 155704

Summary: Part of the text falls out of the box borders for Arabic/Persian text with a fallback font
Product: LibreOffice Reporter: Hossein <hossein>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: khaled, telesto
Priority: medium    
Version: 7.6.0.0 alpha1+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 43808, 157526    
Attachments: Text box with Persian text and Lohit Devanagari font

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.