NEW 285320
[GTK] bad font rendering in 2.46
https://bugs.webkit.org/show_bug.cgi?id=285320
Summary [GTK] bad font rendering in 2.46
shibotto
Reported 2025-01-02 15:51:54 PST
Created attachment 473752 [details] Comparison screenshots I recently upgraded from 2.44 to 2.46 and I immediately noticed degraded font rendering. To give some context, I'm using Evolution 3.52.4 with WebKitGTK 2.46.5; the sans-serif font is "Inter Variable Regular" at 10.5 and the monospace one is "JetBrains Mono NL SemiBold" at 10. The main problems I noticed are the following: - Fonts are too thin on light theme, too thick on dark theme. On the light variant in particular, the sans font is really tiring to read. - Font features, such as alternative symbols, are not considered. Please take a look at the attached picture to see the difference. Downgrading to 2.44 fixes those problems.
Attachments
Comparison screenshots (278.72 KB, image/png)
2025-01-02 15:51 PST, shibotto
no flags
WebKitGTK skia (625.38 KB, image/png)
2025-01-14 02:57 PST, Jim Mason
no flags
WebKitGTK cairo (49.62 KB, image/png)
2025-01-14 03:00 PST, Jim Mason
no flags
Firefox 128 esr (38.05 KB, image/png)
2025-01-14 03:00 PST, Jim Mason
no flags
WebKitGTK skia (39.82 KB, image/png)
2025-01-14 03:01 PST, Jim Mason
no flags
Michael Catanzaro
Comment 1 2025-01-03 08:48:13 PST
Notably 2.44 uses cairo and 2.46 uses skia, so they're not expected to look similar. (No comment on whether the changes are desirable or not.)
Jim Mason
Comment 2 2025-01-14 02:54:25 PST
(In reply to shibotto from comment #0) > - Fonts are too thin on light theme, too thick on dark theme. On the light > variant in particular, the sans font is really tiring to read. I am seeing this as well. I've attached three screeshots, showing a sample page in WebKitGTK cairo, WebKitGTK skia, and Firefox 128 esr. Note the fonts in WebKitGTK cairo and Firefox are consistent, whilst the font rendering with WebKitGTK skia is dodgy. I may be mistaken, but I believe Firefox also uses skia for rendering; if so, somehow they have the font rendering working in a good way.
Jim Mason
Comment 3 2025-01-14 02:57:41 PST
Created attachment 473893 [details] WebKitGTK skia
Jim Mason
Comment 4 2025-01-14 03:00:06 PST
Created attachment 473894 [details] WebKitGTK cairo
Jim Mason
Comment 5 2025-01-14 03:00:52 PST
Created attachment 473895 [details] Firefox 128 esr
Jim Mason
Comment 6 2025-01-14 03:01:34 PST
Created attachment 473896 [details] WebKitGTK skia
shibotto
Comment 7 2025-02-03 08:12:20 PST
Thanks, I've now seen the "what's new in ..." blog post. It says that Cairo is supposed to be removed eventually, but that it is still present for architectures not supported by Skia yet. Until this gets figured out, is it possible to manually select it on architectures where Skia is the default too?
Michael Catanzaro
Comment 8 2025-02-03 09:42:34 PST
Sure, there is a USE_CAIRO build flag. Certainly not recommended though.
shibotto
Comment 9 2025-02-04 09:23:46 PST
I agree, it's not a long term solution and I'd very much prefer not having to do it, even just for the build time. I'm not capable of helping improve Skia by contributing code, but if there is anything you'd like feedbacks on, such as patches and the likes, I'm at your disposal (just mind that it takes 6h+ to build WebKitGTK with Skia on my system, so please be patient). Regarding the build flag, USE_CAIRO didn't seem to make a difference, digging in that direction however I found USE_SKIA and that did the trick.
Note You need to log in before you can comment on or make changes to this bug.