Skip to content
Permalink
Browse files

Follow up status bar font fixes, avoid too small font on Windows

  • Loading branch information
nyalldawson committed Oct 29, 2018
1 parent 9e45223 commit c9206884372e25decb354706728935cef5765e34
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/qgisapp.cpp
@@ -3002,7 +3002,13 @@ void QgisApp::createStatusBar()

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

mStatusBar = new QgsStatusBar();

0 comments on commit c920688

Please sign in to comment.
You can’t perform that action at this time.