Bug 137122 - Font rendering display error (skia) and some DejaVu fonts
Summary: Font rendering display error (skia) and some DejaVu fonts
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.2.0 target:7.1.2
Keywords:
: 133637 135351 136674 (view as bug list)
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2020-09-29 08:58 UTC by christoph
Modified: 2021-03-01 21:10 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot with 7.1.0 alpha1 (2.71 KB, image/png)
2020-10-30 22:04 UTC, Ming Hua
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christoph 2020-09-29 08:58:12 UTC
Description:
In my document there are some letters wrongly displayed f.i. italic f occurs in some weird lines and the italic dash appears as italic ã or something like this. When deactivating skia support everything seems to be fine. If you use just "f" or "fa" "fo" nothing seems to be wrong, it only happens in a word or combination f.i. "fi" or "ff" and only with some DejaVu fonts (did not test all).

Steps to Reproduce:
1. Open document and add some word "Hoffen" or "Hefe", choose italic and DejaVu Sans.
2. And make a dash (double -- and let auto correct do it). Choose italic.
3.

Actual Results:
The f turns into some other character in "Hoffen" but not in "Hefe". The dash is always wrong.

Expected Results:
f should be an italic f so should the dash...


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 12; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win
Locale: de-CH (de_CH); UI: de-DE
Calc: threaded
Comment 1 christoph 2020-09-29 09:17:47 UTC
Now I found Bug 135351 - maybe it is the same or similar problem?
Comment 2 Ming Hua 2020-09-29 09:38:01 UTC
Reproduced with Skia/Raster:
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); 界面: zh-CN
Calc: threaded

"ff" is a ligature in most fonts so I don't think this is the same as bug 135351, though I don't know why en-dash is also affected.

The ligatures "fi", "ffi", as well as em-dash are also affected.
Comment 3 Ming Hua 2020-09-29 09:57:19 UTC
(In reply to Ming Hua from comment #2)
> "ff" is a ligature in most fonts so I don't think this is the same as bug
> 135351, though I don't know why en-dash is also affected.
After reading 135351's duplicate, bug 135989, which also concerns italics specifically, it may be the same bug after all.

I'll mention this bug there.
Comment 4 dennisunderwoodusa 2020-10-03 20:21:36 UTC Comment hidden (spam)
Comment 5 Ming Hua 2020-10-30 22:04:04 UTC
Created attachment 166884 [details]
Screenshot with 7.1.0 alpha1

Still reproducible with 7.1.0 alpha1:
Version: 7.1.0.0.alpha1 (x64)
Build ID: 987671387712c4f9061d6216ff2f001a7bb9e57b
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded
Comment 6 Luboš Luňák 2021-02-25 09:54:12 UTC
*** Bug 136674 has been marked as a duplicate of this bug. ***
Comment 7 Luboš Luňák 2021-02-25 09:54:20 UTC
*** Bug 135351 has been marked as a duplicate of this bug. ***
Comment 8 Commit Notification 2021-03-01 14:57:37 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/13f53741dabc33c5ac12ae26538a2803c6ba1073

make sure Skia DWrite matches the given HFONT exactly (tdf#137122)

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Commit Notification 2021-03-01 20:27:07 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/00e11574b19e996139d78bf7fb9c06ec1651c12d

make sure Skia DWrite matches the given HFONT exactly (tdf#137122)

It will be available in 7.1.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Luboš Luňák 2021-03-01 21:10:22 UTC
*** Bug 133637 has been marked as a duplicate of this bug. ***