Bug 95072 - The font Trench renders too thick, looks ok in PDF export
Summary: The font Trench renders too thick, looks ok in PDF export
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.0.2.2 release
Hardware: Other Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2015-10-14 21:49 UTC by jlbraga
Modified: 2022-11-27 16:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
font problem example (13.82 KB, image/png)
2015-10-14 21:49 UTC, jlbraga
Details
here is the formatted text (9.60 KB, application/vnd.oasis.opendocument.text)
2015-10-14 22:45 UTC, jlbraga
Details
the distorted text in .pdf (3.76 KB, application/pdf)
2015-10-14 22:47 UTC, jlbraga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlbraga 2015-10-14 21:49:54 UTC
Created attachment 119623 [details]
font problem example

Hi. I downloaded a free ODF font called Trench and I formatted the text so only its outline would be visible. When I convert the file to .pdf, the text form changes, the distances between the characters "perimeter" become the same. See the file to see what I mean, please. Thanks.
Comment 1 Joel Madero 2015-10-14 22:09:41 UTC
Please attach a file with the font and the font (if it's free and under a license that you can share it). Also the related PDF would be good.

Marking as NEEDINFO - once attached please mark as UNCONFIRMED. Thanks
Comment 2 jlbraga 2015-10-14 22:45:53 UTC
Created attachment 119626 [details]
here is the formatted text
Comment 3 jlbraga 2015-10-14 22:47:14 UTC
Created attachment 119627 [details]
the distorted text in .pdf
Comment 4 jlbraga 2015-10-14 22:49:24 UTC
this is the link to the free font: http://www.1001fonts.com/trench-font.html#license
Comment 5 Adolfo Jayme Barrientos 2015-10-15 11:44:43 UTC
> the distorted text in .pdf

Er, actually what’s distorted here is not the PDF’s output, which shows the correct font forms (i.e., it displays as the font was drawn).
Comment 6 jlbraga 2015-10-15 17:44:33 UTC
...???...

At least in MY screen, I see the font is the same, but the characters are diferent than in the virtual writing sheet: in the .pdf file, the inner distance between the characters outline is always the same, while in the .odf file, there are "wider" parts of the characters, and "thinner" ones, and that's the idea. The .pdf file "erases" the characters' outline "configuration" and keeps it "straight standard". It eliminates the character "style".
Comment 7 Buovjaga 2015-10-18 17:25:36 UTC
I guess Adolfo was responding to how you described the attachment: "the distorted text in .pdf", while a more appropriate wording would have been "text looks ok in pdf export" or something like that.

It doesn't matter, if the text has an outline character formatting.

Win 7 Pro 64-bit, Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: fi-FI (fi_FI)
Comment 8 jlbraga 2015-10-18 17:28:40 UTC
In my computer, trench is shown ok in Write, but gets all thin in .pdf...
Comment 9 Buovjaga 2015-10-18 18:22:53 UTC
(In reply to jlbraga from comment #8)
> In my computer, trench is shown ok in Write, but gets all thin in .pdf...

The thin form is correct, compare to 1001fonts.
Comment 10 QA Administrators 2017-10-30 08:30:06 UTC Comment hidden (obsolete)
Comment 11 eisa01 2019-11-09 20:32:11 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2021-11-09 04:38:38 UTC Comment hidden (obsolete)
Comment 13 ⁨خالد حسني⁩ 2022-11-27 16:57:50 UTC
This is essentially a Windows bug. The font sets OS/2.usWeightClass to 100, and Windows (at least GDI) is known to embolden any font with usWeightClass less than 250. So GDI is emboldening the font, together with the way we draw outlined text in GUI this gives the distorted outlines.
 
https://learn.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass
https://typedrawers.com/discussion/comment/20149/#Comment_20149

PDF does not suffer from the emboldening issue and the outlined text is also handled slightly differently (that is why it appears thinner).