Bug 161991 - Different rendering of underlined between LO 7.3 and 24.2
Summary: Different rendering of underlined between LO 7.3 and 24.2
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Rendering
  Show dependency treegraph
 
Reported: 2024-07-10 23:22 UTC by Paolo Benvenuto
Modified: 2024-07-11 13:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
pdf printing with LO 7.3 (46.20 KB, application/pdf)
2024-07-10 23:23 UTC, Paolo Benvenuto
Details
pdf printing with LO 24.2 (99.94 KB, application/pdf)
2024-07-10 23:24 UTC, Paolo Benvenuto
Details
odt document (107.72 KB, application/vnd.oasis.opendocument.text)
2024-07-10 23:24 UTC, Paolo Benvenuto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Benvenuto 2024-07-10 23:22:46 UTC
Description:
When I upgraded to LO 24.2 (xubuntu 24.04) I noticed that the "rendering" of my documents have changed.

The most evident thing is that underlying is now (24.2) bolder. This makes my document uglier.

Please see the attached pdf printing with the two LO versions. I'm attacching the original document, too

Steps to Reproduce:
See the attacched pdf's

Actual Results:
underlining is different

Expected Results:
underlining should be the same


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Thank you!
Comment 1 Paolo Benvenuto 2024-07-10 23:23:42 UTC
Created attachment 195222 [details]
pdf printing with LO 7.3
Comment 2 Paolo Benvenuto 2024-07-10 23:24:01 UTC
Created attachment 195223 [details]
pdf printing with LO 24.2
Comment 3 Paolo Benvenuto 2024-07-10 23:24:18 UTC
Created attachment 195224 [details]
odt document
Comment 4 Paolo Benvenuto 2024-07-10 23:25:07 UTC
Comment on attachment 195222 [details]
pdf printing with LO 7.3

only pages 2-3 have been printed
Comment 5 Paolo Benvenuto 2024-07-10 23:25:14 UTC
Comment on attachment 195223 [details]
pdf printing with LO 24.2

only pages 2-3 have been printed
Comment 6 V Stuart Foote 2024-07-11 13:29:56 UTC
Believe this is expected. 7.3 and earlier builds used a artificial calculation in VCL for underlining and strikethrough.  But most fonts provide "metrics" for these values that the font designer specifies.

At 7.4 build we changed LibreOffice to use those font metrics for underline and strikethrough as provided by the font [1]. Only if the font does not contain these metrics do we fall back to the old calculated underline.

But I can confirm the change in underline weight and position.

For OP, you might edit the "Dal libro..." style in your document to use a font other than "Ubuntu" and see if you get better underlining result with PDF export. Maybe using "Noto Sans" would be appealing? Let us know.

Note: I had to install the Ubuntu font family, and export to PDF where the underlining weight of Ubuntu and the "Dal libro..." paragraph style seems reasonable to me. But there was bug 154235 for the Liberation fonts, maybe the Ubuntu font family needs a similar force ignore of its underline metric [2]? 

@Khaled, do you see an issue with Ubuntu font metric? Or is it just an unfortunate font selection...

=-ref-=
[1] https://gerrit.libreoffice.org/c/core/+/140803
[2] https://gerrit.libreoffice.org/c/core/+/149072

Version: 24.2.5.1 (X86_64) / LibreOffice Community
Build ID: 2ccb78ad6bdfe3f3356a7a7f294ec388775c5816
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded