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

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

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: Open
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.9
    • Fix Version/s: 6.0
    • Component/s: QPA: Windows
    • Labels:
      None
    • Environment:

      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

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              kleint Friedemann Kleint
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes