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

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

XMLWordPrintable

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

      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?

        1. qtbug58610_.zip
          1 kB
          Friedemann Kleint
        2. qtbug58610_diag.diff
          0.9 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes