Bug 150667 - Poor GDI+ antialiasing font rendering on Writer
Summary: Poor GDI+ antialiasing font rendering on Writer
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-29 11:54 UTC by mfischer901
Modified: 2022-09-01 14:09 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Fonts should look like this, version 7.3.5 (18.10 KB, image/png)
2022-08-29 11:55 UTC, mfischer901
Details
But the fonts look like this, version 7.4.0. (29.21 KB, image/png)
2022-08-29 11:55 UTC, mfischer901
Details
7.4.0, with Skia rendering (33.03 KB, image/png)
2022-08-30 06:21 UTC, mfischer901
Details
7.5.0 without Skia (3.39 KB, image/png)
2022-08-30 08:03 UTC, mfischer901
Details
7.5.0 with Skia (7.04 KB, image/png)
2022-08-30 08:04 UTC, mfischer901
Details
7.4.0, laptop (65.01 KB, image/png)
2022-08-30 10:48 UTC, mfischer901
Details
Same text as in attachement #182097, PC (49.71 KB, image/png)
2022-08-30 10:53 UTC, mfischer901
Details
7.4.1 RC1, without Skia (49.61 KB, image/png)
2022-08-31 15:27 UTC, mfischer901
Details
7.4.1 RC1, with Skia (59.89 KB, image/png)
2022-08-31 15:29 UTC, mfischer901
Details
Comparison GUI with/without Skia rendering (42.85 KB, image/png)
2022-08-31 15:34 UTC, mfischer901
Details
7.3.5, without Skia (37.21 KB, image/png)
2022-09-01 08:56 UTC, mfischer901
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mfischer901 2022-08-29 11:54:09 UTC
Description:
After updating to version 7.4.0 of LO I noticed, that the fonts in my documents look somehow pixelated and ugly, that's new for me, everything was fine in version 7.3.5. I opened some documents and it looks like all fonts there are affected. The funny (?) thing is: my Calc files are not affected, the fonts there look like they should. Hardware acceleration is activated, anti-aliasing too. Skia rendering is not active.

Steps to Reproduce:
1. Write something
2.
3.

Actual Results:
Font looks pixelated

Expected Results:
Fonts should look better


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 mfischer901 2022-08-29 11:55:04 UTC
Created attachment 182074 [details]
Fonts should look like this, version 7.3.5
Comment 2 mfischer901 2022-08-29 11:55:55 UTC
Created attachment 182075 [details]
But the fonts look like this, version 7.4.0.
Comment 3 m_a_riosv 2022-08-29 17:49:30 UTC
Test if you can activate Skia in Menu/Tools/Options/View, or changing some of the graphics output options.
Comment 4 V Stuart Foote 2022-08-30 04:58:15 UTC
That appears to be a difference in ClearType antialiasing mode. And it could be as IIRC there were some changes for the GDI paths to use more DirectWrite.

For comparison, do a /a admin load of a nightly master against 7.5.0 and try it in both GDI (CPU w/Hardware acceleration) and with Skia software rendering (not Vulkan).
Comment 5 mfischer901 2022-08-30 06:21:28 UTC
Created attachment 182085 [details]
7.4.0, with Skia rendering

Looks way better, but I didn't use Skia until now on a daily base because my hardware is old and LO is slower with Skia activated. And EVERYTHING is smooth, not only the document fonts. It makes the small fonts of the GUI some kind of washed-up.
Comment 6 mfischer901 2022-08-30 06:24:25 UTC
(In reply to V Stuart Foote from comment #4)
> That appears to be a difference in ClearType antialiasing mode. And it could
> be as IIRC there were some changes for the GDI paths to use more DirectWrite.
> 
> For comparison, do a /a admin load of a nightly master against 7.5.0 and try
> it in both GDI (CPU w/Hardware acceleration) and with Skia software
> rendering (not Vulkan).

7.5.0 -> Where/How can I get this?
Comment 7 Telesto 2022-08-30 07:20:11 UTC
(In reply to mfischer901 from comment #6)
> (In reply to V Stuart Foote from comment #4)
> > That appears to be a difference in ClearType antialiasing mode. And it could
> > be as IIRC there were some changes for the GDI paths to use more DirectWrite.
> > 
> > For comparison, do a /a admin load of a nightly master against 7.5.0 and try
> > it in both GDI (CPU w/Hardware acceleration) and with Skia software
> > rendering (not Vulkan).
> 
> 7.5.0 -> Where/How can I get this?

https://dev-builds.libreoffice.org/daily/master/current.html the Win-x86_64@tb77-TDF one
Comment 8 mfischer901 2022-08-30 08:03:59 UTC
Created attachment 182088 [details]
7.5.0 without Skia
Comment 9 mfischer901 2022-08-30 08:04:32 UTC
Created attachment 182089 [details]
7.5.0 with Skia
Comment 10 Telesto 2022-08-30 09:56:27 UTC
@mfischer901
Curious: Are you using Windows display scaling?
Comment 11 mfischer901 2022-08-30 10:17:34 UTC
(In reply to Telesto from comment #10)
> @mfischer901
> Curious: Are you using Windows display scaling?

Nope. Only with my notebook, not with my normal PC.
Comment 12 Telesto 2022-08-30 10:25:00 UTC
(In reply to mfischer901 from comment #11)
> (In reply to Telesto from comment #10)
> > @mfischer901
> > Curious: Are you using Windows display scaling?
> 
> Nope. Only with my notebook, not with my normal PC.

Same issue on both machines? Still trying to pinpoint the cause.
Comment 13 mfischer901 2022-08-30 10:48:57 UTC
Created attachment 182097 [details]
7.4.0, laptop

With my notebook, version 7.4.0, Skia not active, Display scaling 125%.
Comment 14 mfischer901 2022-08-30 10:53:10 UTC
Created attachment 182098 [details]
Same text as in attachement #182097, PC
Comment 15 QA Administrators 2022-08-31 03:35:29 UTC Comment hidden (obsolete)
Comment 16 mfischer901 2022-08-31 09:23:52 UTC
RC1 of the version 7.4.1 is available since yesterday. Should I try this one?
Comment 17 V Stuart Foote 2022-08-31 13:16:40 UTC
(In reply to mfischer901 from comment #16)
> RC1 of the version 7.4.1 is available since yesterday. Should I try this one?

It is not too soon, but you won't necessarily see an improvement. 

Your issue has been that you're using LibreOffice's legacy GDI/GDI+ render paths (only partially DirectWrite which probably have received some recent changes) and not using Skia raster rendering (more fully DirectWrite based which for sure has received changes).

On Windows just use LibreOffice's implementation of Skia raster rendering, not Vulkan (very GPU driver sensitive)--so both Skia boxes checked on the View options panel, and call it done. 

The legacy CPU only GDI+ render paths are still viable but are never going to be identical. No hardware/performance reason to avoid Skia software rendering at 7.4
Comment 18 mfischer901 2022-08-31 15:27:28 UTC
Created attachment 182116 [details]
7.4.1 RC1, without Skia

Yes, looks still bad.
Comment 19 mfischer901 2022-08-31 15:29:52 UTC
Created attachment 182117 [details]
7.4.1 RC1, with Skia

Yes, looks better of course. Maybe I just have to get used to Skia.
Comment 20 mfischer901 2022-08-31 15:34:18 UTC
Created attachment 182118 [details]
Comparison GUI with/without Skia rendering

On the other hand: the GUI looks not very nice with Skia. The screenshot on the right is without Skia, the font looks way sharper.
Comment 21 mfischer901 2022-08-31 15:36:58 UTC
(In reply to V Stuart Foote from comment #17)
> (In reply to mfischer901 from comment #16)
> > RC1 of the version 7.4.1 is available since yesterday. Should I try this one?
> 
> It is not too soon, but you won't necessarily see an improvement. 
> 
> Your issue has been that you're using LibreOffice's legacy GDI/GDI+ render
> paths (only partially DirectWrite which probably have received some recent
> changes) and not using Skia raster rendering (more fully DirectWrite based
> which for sure has received changes).
> 
> On Windows just use LibreOffice's implementation of Skia raster rendering,
> not Vulkan (very GPU driver sensitive)--so both Skia boxes checked on the
> View options panel, and call it done. 
> 
> The legacy CPU only GDI+ render paths are still viable but are never going
> to be identical. No hardware/performance reason to avoid Skia software
> rendering at 7.4

Okay, I guess I stay with the 7.3.5 at this point. It works perfectly well for me, even without Skia.
Comment 22 mfischer901 2022-09-01 08:56:22 UTC
Created attachment 182140 [details]
7.3.5, without Skia

And that is what I look for, the example text in version 7.3.5.
Without skia, only with hardware acceleration and anti-aliasing.
Comment 23 V Stuart Foote 2022-09-01 14:09:12 UTC
(In reply to mfischer901 from comment #22)
> Created attachment 182140 [details]
> 7.3.5, without Skia
> 
> And that is what I look for, the example text in version 7.3.5.
> Without skia, only with hardware acceleration and anti-aliasing.

Choose your poison...