Skip to content
Permalink
Browse files

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

(cherry picked from commit c920688)
  • Loading branch information
nyalldawson committed Oct 29, 2018
1 parent 73134b4 commit c077fbcd3789b0ee5db2382d6487f2ec1635edd1
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 c077fbc

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