Permalink
Browse files

[qt] Windows: Make rpcconsole monospace font larger

Github-Pull: #7364
Rebased-From: fa6a59d
  • Loading branch information...
MarcoFalke authored and laanwj committed Jan 17, 2016
1 parent da83ecd commit 7726c487f80753477ae7f205d52395abfd2fb5f4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/qt/rpcconsole.cpp
View
@@ -472,7 +472,11 @@ void RPCConsole::clear()
// Set default style sheet
QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
// Try to make fixed font adequately large on different OS
+#ifdef WIN32
+ QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 10 / 8);
+#else
QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 8.5 / 9);
+#endif
ui->messagesWidget->document()->setDefaultStyleSheet(
QString(
"table { }"

0 comments on commit 7726c48

Please sign in to comment.