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

Qt 6/Windows Desktop: Update code determining the system default fonts

    XMLWordPrintable

Details

    • User Story
    • Resolution: Fixed
    • Not Evaluated
    • 6.0
    • 5.9
    • QPA: Windows
    • None
    • Windows 10 Desktop OS

    Description

      The code determining default fonts in the Windows font databases uses deprecated API/old legacy fonts.

      • QWindowsFontDatabase::systemFont(), QWindowsFontDatabase::systemDefaultFont() : This currently uses GetStockObject(DEFAULT_GUI_FONT) to obtain the default GUI font (typically "MS Shell Dlg 2, 8pt"). This has been long deprecated; the message font of the NONCLIENTMETRICS structure obtained by SystemParametersInfo(SPI_GETNONCLIENTMETRICS) should be used instead (see QWindowsTheme::refreshFonts(), typically "Segoe UI, 9pt"), which is larger. Needs to be updated since bogus font sizes are returned in High DPI Multimonitor setups.
      • The console font is outdated (see "Change default Windows monospaced font to Consolas/Lucida Console" https://codereview.qt-project.org/#/c/175168/ ) . This might be applied to Qt 5 since the optical difference is marginal?

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              kleint Friedemann Kleint
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes