Bug 160406 - Difference between LibreOffice and OpenOffice in paragraph line-spacing in RTL docs
Summary: Difference between LibreOffice and OpenOffice in paragraph line-spacing in RT...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/problem...
Whiteboard:
Keywords: bibisectRequest
Depends on:
Blocks:
 
Reported: 2024-03-28 12:11 UTC by FarzinLtd@Yahoo.com
Modified: 2024-04-16 00:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
fonts + 2 sample files (676.28 KB, application/vnd.rar)
2024-03-28 12:20 UTC, FarzinLtd@Yahoo.com
Details
same files as those attached but in zip file (713.83 KB, application/zip)
2024-03-28 17:59 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FarzinLtd@Yahoo.com 2024-03-28 12:11:12 UTC
Description:
When I use this font (is attached) in a document; Viewing of document in LibreOffice's is different from ApacheOpenOffice (line spacing in paragraphs).
This file is create by ApacheOpenOffice 4.1.15.

This font is an Iranian font and this problem exists with all other types of Iranian fonts. But, when I use the Arial font and other font installed by windows, this problem is not seen. it is clear that the reason for this problem is the font.
But why this problem is not seen in ApacheOpenOffice is another point that should be investigated.

I have many odt files and in the past years (before LibreOffice version 4) not exists this problem.

Steps to Reproduce:
1 - create odt file by Apache Oo
2 - install the nazanin font and use of for above file
3 - open above file by LibreOffice

Actual Results:
paragraph line spacing in LibreOffice is less than ApacheOpenOffice

Expected Results:
paragraph line spacing in LibreOffice is same of ApacheOpenOffice


Reproducible: Always


User Profile Reset: Yes

Additional Info:
https://ask.libreoffice.org/t/problem-in-paragraph-line-spacing-for-rtl-docs/104052
Comment 1 FarzinLtd@Yahoo.com 2024-03-28 12:20:18 UTC
Created attachment 193367 [details]
fonts + 2 sample files
Comment 2 Julien Nabet 2024-03-28 17:59:12 UTC
Created attachment 193372 [details]
same files as those attached but in zip file

zip compression is more universal than rar.
Comment 3 Stéphane Guillou (stragu) 2024-04-12 14:11:20 UTC
Reproduced in 4.1.0.4, not reproduced in 4.0.0.3. Could be bibisected to find out when exactly it started.

Note that OnlyOffice displays it like LO. To me, it feels like the current line spacing corresponds to the single line as in the settings, so possibly "not a bug".

Khaled, could it be related to the fix you mention in bug 55469 comment 15?
Comment 4 ⁨خالد حسني⁩ 2024-04-16 00:04:42 UTC
See Bug 155297. It seems to be the same font but called Nazanin instead of B Nazanin. The same solution should work, e.g. go to the export config dialog, search for FontsUseWinMetrics key and copy the B Nazanin lines, but change it to be Nazanin only, and you get the old line spacing.

These are fonts with inconsistent line spacing settings, one platform will pick a value and another platform will pick a different value, and we have a heuristic that tries to select a most sensible value, but no matter what we do some font will break. If these fonts are in wide use, we can apply the same solution as Bug 155297 in the default configuration.