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

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.10.0 Beta3
    • 6.8.2
    • GUI: Font handling
    • None
    • Windows
    • 6854ea633 (dev)

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes