Bug 225912

Summary: [GTK] REGRESSION(r271354): Font sizes calculated incorrectly
Product: WebKit Reporter: Milan Crha <mcrha>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Milan Crha 2021-05-18 02:55:51 PDT
The changes for bug #218450 removes default font size recalculations for higher DPI, which means the DPI scaling is applied twice to some fonts. This is visible on the named font sizes, like the `medium` and others, which are derived from the default font size. The webkit_settings_font_size_to_pixels() applies the DPI scaling and the scaling is applied again after the change for the bug #218450. To make it work properly the default font sizes can be calculated for 96 DPI only, but it's not what the WebKitSettings properties are meant to be, because they expect raw pixel size.

This had been reported downstream as:
https://gitlab.gnome.org/GNOME/evolution/-/issues/1485