Bug 149889

Summary: Formula box in Calc can not correctly recognize the width of characters (Persian)
Product: LibreOffice Reporter: افشین <afshin>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: khaled, rafael.palma.lima
Priority: medium    
Version: 7.3.4.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112810    
Attachments: correctly recognize the alphabets widt

Description افشین 2022-07-07 08:55:56 UTC
Description:
Hello. 

Formula box in Calc can not correctly recognize the alphabets width. It use wrong width for some Persian alphabets and this caused to overlap long Persian alphabets like "ت" and "ی". (This problem does not cause when a monospaced font set on the system)

Actual Results:
can not correctly recognize the alphabets width.

Expected Results:
correctly recognize the alphabets width.


Reproducible: Always


User Profile Reset: No



Additional Info:
Not.
Comment 1 افشین 2022-07-07 08:58:27 UTC
Created attachment 181147 [details]
correctly recognize the alphabets widt
Comment 2 افشین 2022-07-07 12:00:59 UTC
For example:

=IF(A3>1000,"درست","نادرست")
Comment 3 Rafael Lima 2022-07-07 20:13:37 UTC
Repro with

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: d2dfc0c4286057f5d8dda178817de3503c3a7d29
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded

I copied the formula from Comment #2 and pasted it into cell A1 in LO Calc. The quotation marks are all misaligned.
Comment 4 افشین 2022-08-29 15:52:46 UTC
@خالد حسني

Hello. 
Would you please reproduce this bug?
Comment 5 ⁨خالد حسني⁩ 2022-08-29 16:34:21 UTC
Can’t reproduce on master, please test with the latest daily build.
Comment 6 ⁨خالد حسني⁩ 2022-08-29 19:59:06 UTC

*** This bug has been marked as a duplicate of bug 150544 ***
Comment 7 ⁨خالد حسني⁩ 2022-08-29 20:00:12 UTC

*** This bug has been marked as a duplicate of bug 103492 ***