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

Windows: FileDialog and FontLoader don't work well together on some devices

    XMLWordPrintable

Details

    • Windows

    Description

      When FileDialog is initialized after a FontLoader in QML, it seems to corrupt fonts or at least they are not being correctly painted. There are errors like this printed in the application output:

      QWindowsFontEngineDirectWrite::addGlyphsToPath: GetGlyphRunOutline failed (The parameter is incorrect.)
      QWindowsFontEngineDirectWrite::getSfntTableData: TryGetFontTable failed (The parameter is incorrect.)
      QWindowsFontEngineDirectWrite::addGlyphsToPath: GetGlyphRunOutline failed (The parameter is incorrect.) 
      

      Changing the order of FileDialog and FontLoader initialization reportedly works around the issue.

      This seems to only occur on some devices. At least it was reproducible on Microsoft Surface Book 2.

      Attachments

        1. qt_77785_2_debug_output.log
          440 kB
          Michał Cieślak
        2. qt77785_linux_stacktrace.txt
          3 kB
          Michał Cieślak
        3. qt77785_linux.log
          266 kB
          Michał Cieślak
        4. qtbug77785_2_output.log
          0.8 kB
          Michał Cieślak
        5. qtbug77785_2.zip
          104 kB
          Michał Cieślak
        6. qtbug77785_linux.zip
          116 kB
          Michał Cieślak
        7. qtbug77785.zip
          118 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes