Skip to content

Commit c920688

Browse files
committed
Follow up status bar font fixes, avoid too small font on Windows
1 parent 9e45223 commit c920688

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/qgisapp.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,13 @@ void QgisApp::createStatusBar()
30023002

30033003
// Drop the font size in the status bar by a couple of points
30043004
QFont statusBarFont = font();
3005-
statusBarFont.setPointSize( statusBarFont.pointSize() - 2 );
3005+
int fontSize = statusBarFont.pointSize();
3006+
#ifdef Q_OS_WIN
3007+
fontSize = std::max( fontSize - 1, 8 ); // bit less on windows, due to poor rendering of small point sizes
3008+
#else
3009+
fontSize = std::max( fontSize - 2, 6 );
3010+
#endif
3011+
statusBarFont.setPointSize( fontSize );
30063012
statusBar()->setFont( statusBarFont );
30073013

30083014
mStatusBar = new QgsStatusBar();

0 commit comments

Comments
 (0)