Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100505

Incorrect Font Kerning with some fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.15.2
    • GUI: Font handling
    • None
    • Operating System: Arch Linux
      KDE Plasma Version: 5.23.5
      KDE Frameworks Version: 5.90.0
      Qt Version: 5.15.2
      Fontconfig Version: 2:2.13.94-2
      Kernel Version: 5.15.19-xanmod1-tt-1 (64-bit)
      Graphics Platform: X11
    • Linux/X11

    Description

      Some fonts have incorrect kerning in QT apps. GTK apps have correct kerning.  Some example fonts that have incorrect kerning:

      • Source Sans 3
      • Ubuntu
      • Calibri

      Example fonts that render correctly:

      • Liberation Sans
      • DejaVu Sans
      • Roboto

      I checked all my DPI settings. Xorg is manually set to 108 DPI. KDE font settings are forced to 108 DPI. ~/.config/fontconfig/fonts.conf DPI is set to 108. Xft.dpi is also set to 108.

      The incorrect kerning is present in KDE UI elements. However the KDE Font Management panel renders them correctly.  Other non-KDE apps that are QT based are also affected such as VLC and Clementine.

      Two of the attached screenshots show the incorrect kerning with 2 different fonts (Source Sans 3 and Ubuntu), and the third screenshot shows correct rendering of Source Sans 3 on the Font Management page.  If you look at the incorrect kerning screenshots, it appears that certain letters like "e", "o", and "u" are getting shifted to the left when they follow certain other letters like "F", "C", "x". 

      Attachments

        1. 2022-02-07 09-27-41.mkv
          1.13 MB
        2. avidemux.png
          avidemux.png
          74 kB
        3. clementine.png
          clementine.png
          113 kB
        4. Screenshot_20220204_114343.png
          Screenshot_20220204_114343.png
          84 kB
        5. Screenshot_20220204_115345.png
          Screenshot_20220204_115345.png
          86 kB
        6. Screenshot_20220204_122935.png
          Screenshot_20220204_122935.png
          40 kB
        7. scribus.png
          scribus.png
          85 kB
        8. vlc.png
          vlc.png
          70 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              walmartshopper Kyle Bradfield
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes