Bug 127176

Summary: 'Noto Nastaliq Urdu' font does not render correctly when justified.
Product: LibreOffice Reporter: Nasir <nasirmehmood847>
Component: LibreOfficeAssignee: ⁨خالد حسني⁩ <khaled>
Status: VERIFIED FIXED    
Severity: normal CC: khaled, xiscofauli
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard: target:7.5.0 inReleaseNotes:7.5
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 71732, 150285    
Attachments: PDF Document showing difference in rendering while justified
Test Document containing text and embedded 'Noto Nastaliq Urdu' font

Description Nasir 2019-08-27 05:02:30 UTC
Created attachment 153679 [details]
PDF Document showing difference in rendering while justified

Whenever some Arabic/Urdu text is in 'Noto Nastaliq Urdu' font and text alignment is justified, text does not render correctly in LibreOffice. LibreOffice apparently  tries justify text using Tatweel characters which causes the shapes to be broken. A sample pdf file is attached which contains right aligned and justified text and rendering difference. This problem occurs in all LibreOffice versions.
Comment 1 Xisco Faulí 2019-09-05 11:44:06 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 Nasir 2019-09-05 12:50:49 UTC
Created attachment 153916 [details]
Test Document containing text and embedded 'Noto Nastaliq Urdu' font
Comment 3 ⁨خالد حسني⁩ 2019-09-15 20:42:09 UTC
We do not currently have a way to disable Kashida justification and force using spaces only for Arabic text, which is breaking this font.

This probably requires both UX input (who would this be handled? in MS Office the full justification button has a menu this shows three levels of justification), and whether ODT format supports such control (OOXML probably does).
Comment 4 QA Administrators 2021-09-15 03:36:39 UTC Comment hidden (noise)
Comment 6 Stéphane Guillou (stragu) 2022-12-07 15:53:53 UTC
Fix verified in:

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: da3dd48eaf9086f8ab28d6a6655f9a638e51433a
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded