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

Use IDWriteFontFallback to determine font fallback on Windows

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • GUI: Font handling
    • None
    • Windows

    Description

      The current Windows font database implementation seem to just try all the fonts alphabetically in the system, this leads to various bugs when there are custom fonts installed by various software, e.g I've seen reports about small Thai letters and about invisible letters, all of which seem to come from the fact Qt picks up these broken fonts as they report they support those scripts. There's API since Windows 8.1 to get the system fallback.

      https://learn.microsoft.com/en-us/windows/win32/api/dwrite_2/nn-dwrite_2-idwritefontfallback
      https://learn.microsoft.com/en-us/windows/win32/DirectWrite/idwritefactory2-getsystemfontfallback
      https://learn.microsoft.com/en-us/windows/win32/api/dwrite_2/nf-dwrite_2-idwritefontfallback-mapcharacters

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ilya-fedin Ilya Fedin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes