Bug 107888 - Same document with fonts Neutra-Text-Alt looks different with LibreOffice >= 5.3.x
Summary: Same document with fonts Neutra-Text-Alt looks different with LibreOffice >= ...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected
Depends on:
Blocks:
 
Reported: 2017-05-16 10:18 UTC by Giovanni
Modified: 2017-10-03 21:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
ImagesAndFont (230.42 KB, application/x-zip-compressed)
2017-05-16 10:18 UTC, Giovanni
Details
ODT file (8.65 KB, application/vnd.oasis.opendocument.text)
2017-05-16 13:39 UTC, Giovanni
Details
SameValuesTest (119.15 KB, image/png)
2017-05-23 10:33 UTC, Giovanni
Details
in screen clip of FontForge Element -> Font Info -> OS/2 Metrics tab (157.29 KB, image/png)
2017-05-23 14:46 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni 2017-05-16 10:18:09 UTC
Created attachment 133355 [details]
ImagesAndFont

If you open the attached document with LibreOffice < 5.3.x the numbers fill the page.

With LibreOffice >= 5.3.x the nubers does't fill the page.
Comment 1 tommy27 2017-05-16 13:30:31 UTC
in the .zip you attached there's only a couple of screenshots and fonts.
there's no .ODT document inside.

to better debug you should attach that text document as well.
Comment 2 Giovanni 2017-05-16 13:39:37 UTC
Created attachment 133361 [details]
ODT file

I'm sorry!
Comment 3 Timur 2017-05-17 18:37:00 UTC
Not sure this is bug. There were changes: https://wiki.documentfoundation.org/ReleaseNotes/5.3. Both should be tested also on Linux with these fonts to verify consistent text layout.
Comment 4 Giovanni 2017-05-18 09:47:03 UTC
Tested on Ubuntu 16.04.2 with LibreOffice 5.1.42 vs 5.3.3.2: same problem.

If it isn't a bug this means that all my documents need a page reorder....
Comment 5 V Stuart Foote 2017-05-19 16:56:55 UTC
This looks to be another font with bad metrics. 

Bibisecting with builds on hand, the line heights are as legacy through this build:
Version: 5.3.0.0.alpha1+
Build ID: 0f3861e65d8e652dcc31cf9a2f2b5c1a0a73b86d
CPU Threads: 8; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-11-19_23:33:29
Locale: en-US (en_US); Calc: CL

And first note bad with the build:
Version: 5.4.0.0.alpha0+
Build ID: 9691cea443a74885b3f81c602efdd3345de1e3f9
CPU Threads: 8; OS Version: Windows 6.19; UI Render: default; Layout Engine: old; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-11-24_14:26:28
Locale: en-US (en_US); Calc: CL

So that is in the range for the refactoring for bug 55469 with ref commit.

Should have simple workaround to correct the installed font metrics (with FontForge, TypeLight, FontCreator, etc.)

@Khaled, for users as in this case needing to correct their font metrics--they uninstall the font. Then edit it to set the hhea and Typo to match the OS/2 Win Ascent/Descent, right?  Testing, I just did that and it restored the formatting of the earlier builds to 5.3 builds.

=-ref-=
https://cgit.freedesktop.org/libreoffice/core/commit/?id=34d7602954d4483b3bc9db700e7df2c15348947a

https://gerrit.libreoffice.org/#/c/31053/
Comment 6 ⁨خالد حسني⁩ 2017-05-20 19:56:56 UTC
That should be enough, but be aware of the font license as many do not allow modification even for personal use.
Comment 7 Giovanni 2017-05-23 10:33:23 UTC
Created attachment 133473 [details]
SameValuesTest

I'm trying to edit the fonts but doesn't work.
Just for information: if you set the "Indents & Spacing" -> "Spacing" (with Libre Office 5.3.1.2) to 0.09 for "Default Style" it's work.
Comment 8 V Stuart Foote 2017-05-23 14:46:08 UTC
Created attachment 133482 [details]
in screen clip of FontForge Element -> Font Info -> OS/2 Metrics tab

(In reply to Giovanni from comment #7)
> Created attachment 133473 [details]
> SameValuesTest
> 
> I'm trying to edit the fonts but doesn't work.

In FontCreator the Typo Descent and HHead Descent need to be set negative.

> Just for information: if you set the "Indents & Spacing" -> "Spacing" (with
> Libre Office 5.3.1.2) to 0.09 for "Default Style" it's work.

Maybe, but you'd constantly have to tweak things in all you legacy documents--better to correct the font metrics for those, and use an alternate font with correct metrics (or a modified copy of these) going forward for new documents.
Comment 9 Giovanni 2017-05-24 05:54:12 UTC
Ok with negative values it works but I olso needed to set "Typo Line Gap" and "HHead Line Gap" to zero.