Details
-
User Story
-
Resolution: Fixed
-
Not Evaluated
-
5.9
-
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
- relates to
-
QTBUG-74917 Create a QWindowsDirectWriteFontDatabase
- Closed
-
QTBUG-85491 Windows user text size not fully adopted in PySide2 or PyQt5
- Reported
-
QTCREATORBUG-25257 When Qt Creator is shown on a monitor with 200% scaling for text then certain dialogs do not show the text at the right size which means it can be too small for the screen
- Reported
-
QTBUG-84415 tst_QTextLayout::textWidthVsWIdth() failed on msvc2019 developer build
- Closed
-
QTBUG-95298 Font sizes getting mixed up in multi display setups /w different scale factors on Windows
- Closed
-
QTBUG-101951 [REG 5.15.0 ->5.15.1] HighDPI: Fonts are not scaled consistently when scaling is changed
- Closed
-
QTBUG-76095 Windows: Wrong text size after update to Windows 10 1903
- Closed
-
QTBUG-84927 HiDpi Qt app does not behave same as native app
- Closed
-
QTBUG-85502 When DirectWrite is turned off then the font spacing can end up being incorrect at some sizes
- Closed