Menu

#1859 Incorrect font size in auto-completoin list on GTK >= 3.21

Bug
closed-fixed
5
2016-10-16
2016-09-06
No

GTK 3.21.0 changed (fixed) font size handling, leading to properly interpreting pixels and points in CSS declarations. However, as older versions incorrectly handled those, the code has to handle both behaviours.

From CSS, GTK < 3.21.0 actually applied the conversion to points, but incorrectly: 10px was used as 10pt, but 10pt was scaled up twice.

So, assuming 96 DPI, it leads to:

font-size 3.20.0 3.21.0
10px 13.33px 10px
10pt 17.77px 13.33px

So, we need to fix the code to accommodate for both (either scaling ourselves, or adapting the unit: I chose the second, simpler, option).

See https://git.gnome.org/browse/gtk+/commit/?id=df08fc91bdc1d2e4c866122304fabe4dd298a7de

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2016-09-06
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2016-09-06

    Committed as [a4b5da].

     

    Related

    Commit: [a4b5da]

  • Neil Hodgson

    Neil Hodgson - 2016-10-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB