<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>225912</bug_id>
          
          <creation_ts>2021-05-18 02:55:51 -0700</creation_ts>
          <short_desc>[GTK] REGRESSION(r271354): Font sizes calculated incorrectly</short_desc>
          <delta_ts>2021-05-18 06:32:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Milan Crha">mcrha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1761107</commentid>
    <comment_count>0</comment_count>
    <who name="Milan Crha">mcrha</who>
    <bug_when>2021-05-18 02:55:51 -0700</bug_when>
    <thetext>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&apos;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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>