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

Qt Font Discovery resolves to a QFont which QFontEngine can not handle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11, 6.6
    • GUI: Font handling
    • None
    • Linux/X11

    Description

      PROBLEM:

      As reported in FreeCAD: FreeCAD/issues/10514:

      Qt Font Discovery on both Qt-5 and Qt-6:

      https://doc.qt.io/qt-5/qfont.html#fontmatching

      https://doc.qt.io/qt-6/qfont.html#fontmatching

      will resolve to a "bad font", that is, the QFont which QFontEngine can not handle:

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/text/qfontengine.cpp?h=5.15#n652

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/text/qfontengine.cpp?h=6.6.1#n564

      This leads to multiple failures in multiple places in Qt library during the application lifetime.

       

      SOLUTION:

      Qt Font Discovery should filter out QFontEngine "bad fonts" from resolution process results.

       

      Attachments

        1. issue_base.py
          1.0 kB
          random hacker
        2. issue_base.txt
          1 kB
          random hacker
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            andrei_pozolotin random hacker
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes