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

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

    XMLWordPrintable

    Details

    • Platform/s:
      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
        2. qt77785_linux_stacktrace.txt
          3 kB
        3. qt77785_linux.log
          266 kB
        4. qtbug77785_2_output.log
          0.8 kB
        5. qtbug77785_2.zip
          104 kB
        6. qtbug77785_linux.zip
          116 kB
        7. qtbug77785.zip
          118 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            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