Skip to content

Commit

Permalink
Follow up status bar font fixes, avoid too small font on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 29, 2018
1 parent 9e45223 commit c920688
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit c920688

Please sign in to comment.