Bug 250987 - [GTK] Font scaling settings other than 1.00 are not rendered metrically equivalent to Firefox and Chrome, leading to broken page layouts
Summary: [GTK] Font scaling settings other than 1.00 are not rendered metrically equiv...
Status: RESOLVED DUPLICATE of bug 250138
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-22 13:55 PST by Jeff Fortin
Modified: 2023-01-22 14:35 PST (History)
2 users (show)

See Also:


Attachments
Comparison at font scale 1.00 - all OK (822.87 KB, image/png)
2023-01-22 13:55 PST, Jeff Fortin
no flags Details
Comparison at font scale 1.15 (846.78 KB, image/png)
2023-01-22 13:56 PST, Jeff Fortin
no flags Details
Comparison at font scale 1.30 (629.30 KB, image/png)
2023-01-22 13:56 PST, Jeff Fortin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin 2023-01-22 13:55:35 PST
Created attachment 464597 [details]
Comparison at font scale 1.00 - all OK

If you take this page for example: https://www.lapresse.ca/international/europe/2023-01-22/guerre-en-ukraine-jour-333/l-allemagne-prete-a-autoriser-la-pologne-a-livrer-des-chars-leopard-a-kyiv.php

(there are various other websites affected out there, but this one is a bit more obvious, and it's easier to find other articles in that website that would trigger the issue)

...if you open the "gnome-tweaks" app, and set your font scaling to something other than the default 1.00, such as 1.15 or 1.30, you will observe that Firefox and Chrome retain the exact same font typesetting / layout rendering, while Epiphany / WebKitGTK does not.

Attached are some screenshots that compare the page mentioned above in all three browsers, with some focal points circled to draw your attention to the differences in rendering.
Comment 1 Jeff Fortin 2023-01-22 13:56:22 PST
Created attachment 464598 [details]
Comparison at font scale 1.15
Comment 2 Jeff Fortin 2023-01-22 13:56:53 PST
Created attachment 464599 [details]
Comparison at font scale 1.30
Comment 3 Jeff Fortin 2023-01-22 13:58:14 PST
This behavior was observed in the EpiphanyDevel "technology preview" flatpak package, but was also observed in version 43 and every previous WebKitGTK version (as far as I can remember).
Comment 4 Michael Catanzaro 2023-01-22 14:35:27 PST
Isn't this exactly the same as bug #250138, which I see you found?

It seems weird to apply the font scaling factor to everything rather than just fonts, but whatever, I guess if Firefox and Chrome both do that then we probably should too.
Comment 5 Michael Catanzaro 2023-01-22 14:35:36 PST

*** This bug has been marked as a duplicate of bug 250138 ***