Bug 149270 - Writer: Font of watermark is displayed incorrectly
Summary: Writer: Font of watermark is displayed incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: FontWork-WordArt Page-Watermark
  Show dependency treegraph
 
Reported: 2022-05-24 18:45 UTC by BDF
Modified: 2023-07-15 13:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bahnschrift.ttf (362.68 KB, font/ttf)
2022-05-24 18:47 UTC, BDF
Details
Writer text file - bug 149270 (13.02 KB, application/vnd.oasis.opendocument.text)
2022-05-24 18:51 UTC, BDF
Details
Writer pdf file - bug 149270 (16.94 KB, application/pdf)
2022-05-24 18:53 UTC, BDF
Details
Observed example of bug 149270 (30.74 KB, image/png)
2022-05-24 18:54 UTC, BDF
Details
Bahnschrift semi bold in Fontwor shape (12.98 KB, application/vnd.oasis.opendocument.text)
2022-05-24 21:30 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BDF 2022-05-24 18:45:35 UTC
Description:
When a certain font is used for watermarks, the text is displayed incorrectly

Steps to Reproduce:
1. Add Watermark using the wrong font
(thats all)

Actual Results:
Watermark text is displayed incorrectly

Expected Results:
Watermark text is displayed correctly


Reproducible: Always


User Profile Reset: No



Additional Info:
You can NOT use any font to get this effect. The font has to be created with 'bad outlines'. An example for this is the "Bahnschrift" font.

- If you know a bit about SVGs: The outer line is not created by a single multigon, but by overlaping parts. The parts where one part of the letter intersects the other part seems to cause this bug.

- If you don't know SVGs: SVGs can be made up of one single shape or multiple shapes combined. You can add two intersection squares and save them as such. You ca also combine them into one shape and have the outline of both. The first case seems to be the problem here (two shapes intersecting). The parts that intersect each other are the parts that look incorrect.

I once knew how to extract the single glyph as SVG, but I aready forgot, Can't be that difficult though.
If you upload the Bahnschrift font on https://opentype.js.org/ you can see the problem as well. The outlines are created with the blue dots. The red dots seem to be bezier curves (no idea though). The blue dots within the black shape are the ones that cause the problem. They indicate that a shape overlaps the other shape. The middle bar of the "E" for example is a single shape. The top bar, the bottom bar as well as the left bar are also single shapes.

Why I think it's the problem of LibreOffice and not of the Bahnschrift font simply is that the same font works in regular text in black font colour, grey font colour and black font colour with a transparency of 70%.
So you would think that the same font looks the same way in the watermark.

--------------------------------------------------

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (de_AT); UI: de-DE
Calc: CL

(So far I only tested this on Windows because I yet have to find out how to install fonts on my Linux machine.)
Comment 1 BDF 2022-05-24 18:47:39 UTC
Created attachment 180350 [details]
bahnschrift.ttf

The regular Windows Bahnschrift font.
Since a quick google search shows that you can download this font for free from multiple sites I think it's OK to share it for bug report purposes.
Comment 2 BDF 2022-05-24 18:51:51 UTC
Created attachment 180351 [details]
Writer text file - bug 149270

ODT file with multiple examples:
Page 1:
- Watermark only. Characters B, E, H and R as example in the Bahnschrift font. Everything else was left to default

Page 2:
- Same as 1 plus "BEHR" in Bahnschrift font in colour black.


Page 3:
- Same as 1 plus "BEHR" in Bahnschrift font in colour black with 70% transparency. The watermark font below shows the bug, the 'text' font does not.
Comment 3 BDF 2022-05-24 18:53:08 UTC
Created attachment 180352 [details]
Writer pdf file - bug 149270

The odt file exported as pdf in case the bug can not be observed on a different machine.
Comment 4 BDF 2022-05-24 18:54:22 UTC
Created attachment 180353 [details]
Observed example of bug 149270

In case the odt file as well as the pdf file look fine on your PC, this is how it looks like on my machine.
Comment 5 Regina Henschel 2022-05-24 21:30:09 UTC
Created attachment 180354 [details]
Bahnschrift semi bold in Fontwor shape
Comment 6 Regina Henschel 2022-05-24 21:30:56 UTC
You need no Watermark but the problem is already visible in Fontwork-shapes.
Comment 7 BogdanB 2023-06-10 05:36:12 UTC
Please retest, looking good to me.
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded