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

QFontDatabase::addApplicationFont() does not work with DirectWrite font engine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.1
    • 4.8.0, 5.6.0 Beta
    • GUI: Font handling
    • None
    • 21c7421d4e86b6048f9c2c7a9a81ec4ff1ed278c

    Description

      If you configure Qt with -directwrite, add an application font using either QFontDatabase::addApplicationFont() or QFontDatabase::addApplicationFontFromData(), and then try to select this font using any of the none or vertical hinting preferences, you would expect to get support for this. However, due to limitations in the DirectWrite back-end, it will fall back to using GDI and full hinting. In a debug build you will see the warning message "QFontEngine::loadEngine: CreateFontFromLOGFONT failed".

      A possible work-around for this is to handle the fonts especially and use QRawFont to load them instead.

      Attachments

        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
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes