summaryrefslogtreecommitdiffstats
path: root/src/platformsupport
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-10-09 11:49:03 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-10-09 21:02:22 +0000
commita24597d93d7f1f30b7656af0af97f9a18797c2a5 (patch)
treedc9a7177363eee120a42005d4d42ce20c801a601 /src/platformsupport
parent6dea9bfa1086043bf6fdc373f19c66b1e29b8f00 (diff)
Windows font database: Remove clamping of default font size
Partially revert a72513cab7cdfac638ef572838277aa062f1d296. The value is too small for Chinese fonts. Task-number: QTBUG-63654 Change-Id: If020bfc3044258b7abfd9d463bc9b292a9cc0839 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/platformsupport')
-rw-r--r--src/platformsupport/fontdatabases/windows/qwindowsfontdatabase.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/platformsupport/fontdatabases/windows/qwindowsfontdatabase.cpp b/src/platformsupport/fontdatabases/windows/qwindowsfontdatabase.cpp
index 58b700b93f..a0adcd6e2e 100644
--- a/src/platformsupport/fontdatabases/windows/qwindowsfontdatabase.cpp
+++ b/src/platformsupport/fontdatabases/windows/qwindowsfontdatabase.cpp
@@ -1980,12 +1980,6 @@ QFont QWindowsFontDatabase::systemDefaultFont()
// 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.
- // In single monitor setups, the point sizes revolve around 8 (depending on UI
- // scale factor, but not proportional to it). However, in multi monitor setups,
- // where the DPI of the primary monitor are smaller than those of the secondary,
- // large bogus values are returned. Limit to 8.25 in that case.
- if (GetSystemMetrics(SM_CMONITORS) > 1 && systemFont.pointSizeF() > 8.25)
- systemFont.setPointSizeF(8.25);
#endif // Qt 5
qCDebug(lcQpaFonts) << __FUNCTION__ << systemFont;
return systemFont;