Bug 225912 - [GTK] REGRESSION(r271354): Font sizes calculated incorrectly
Summary: [GTK] REGRESSION(r271354): Font sizes calculated incorrectly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-18 02:55 PDT by Milan Crha
Modified: 2021-05-18 06:32 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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