[Webkit-unassigned] [Bug 250138] [GTK] Changing system font-scaling factor results in messy rendering of the page (Epiphany, WebKitGtk)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 18 11:33:15 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=250138

--- Comment #9 from Calvin Walton <calvin.walton at kepstin.ca> ---
I made a mistake in reporting Bug 259309 - the text scaling factor *is* actually getting applied.

But one thing I noticed is that Firefox applies it in a different way from WebKitGTK.

It seems like WebKitGTK uses the setting only to adjust font sizes, which can make fonts larger (relative to other parts of the page) than the designer expected, and for example changes the ratio of how many 'px' are in an 'em'. This is probably why page layouts are breaking?

But Firefox handles this very differently. Instead of adjusting only the font sizes, it adjusts the entire page scaling. So, for example, if you're running on a display with 200% scaling, and enable Large Text in GNOME (1.25×), then the result will be that `window.devicePixelRatio` reports 2.5. The font sizes reported in the web inspector or visible to the web page are unchanged; the page is just drawn as if it was zoomed in by 1.25×, or as if it was being drawn on a higher pixel density screen than is actually in use.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230718/a8385a02/attachment.htm>


More information about the webkit-unassigned mailing list