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

[REG 6.7.2 -> Qt 6.8.2] Windows: QFontDatabase::families() does not list stylistic variants of families

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • None
    • 6.8.2
    • GUI: Font handling
    • None
    • Windows
    • 6854ea633 (dev), 3915684fb (6.9), 2d82e845c (dev), 3915e017e (6.10), fcf8c2c43 (6.9)

      On Windows, QFontDabase in Qt 6.8 does not list style variants of families anymore. This is a regression from Qt 6.7. One liner to demonstrate the issue:

       

      python -c "from PySide6.QtWidgets import QApplication; from PySide6.QtGui import QFontDatabase; app = QApplication([]); print('\n'.join(QFontDatabase.families()))" | grep -i arial 

      On Qt 6.7.2 the output is:

      Arial
      Arial Black
      Arial Narrow
      Arial Rounded MT Bold 

      On Qt 6.8.2 the output is:

      Arial
      Arial Rounded MT
      
      

      Note that Arial Black and Arial Narrow are missing. This means it is no longer possible to select these via QFontComboBox, for example.

      Downstream bug report: https://bugs.launchpad.net/bugs/2106504

        For Gerrit Dashboard: QTBUG-135817
        # Subject Branch Project Status CR V

            esabraha Eskil Abrahamsen Blomfeldt
            kovidgoyal Kovid Goyal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes