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

DirectWrite's default hinting looks off

    XMLWordPrintable

Details

    • Windows
    • de3d5dd73 (dev), 90963387e (6.7), 1d244eb91 (6.6), 875f8a795 (tqtc/lts-6.5)

    Description

      By default, with DirectWrite as the fontengine, when not using high-DPI scaling, fonts will render with CLEARTYPE_GDI_CLASSIC, which can make them look squashed (e.g. no space between m and e):

      fontenegine DirectWrite GDI
      top: default hinting
      bottom: vertical hinting

      (code in hinting-1.cpp)

      I tested this in a larger application and this does make quite the difference (also having to manually set the hinting doesn't seem like a good solution, especially since DirectWrite is the default). If you enable high-DPI scaling, the default hinting will look like with GDI again.

      Removing the check for high-DPI scaling in hintingPreferenceToRenderingMode (qwindowsfontenginedirectwrite.cpp) would resolve this issue.

      Attachments

        1. fe_directwrite-1.png
          fe_directwrite-1.png
          1 kB
        2. fe_gdi-1.png
          fe_gdi-1.png
          1 kB
        3. hinting-1.cpp
          0.5 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-122139
          # Subject Branch Project Status CR V

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              nerixyz Tom Fors
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes