Skip to content

Commit 7726c48

Browse files
MarcoFalkelaanwj
authored andcommitted
[qt] Windows: Make rpcconsole monospace font larger
Github-Pull: #7364 Rebased-From: fa6a59d
1 parent da83ecd commit 7726c48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,11 @@ void RPCConsole::clear()
472472
// Set default style sheet
473473
QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
474474
// Try to make fixed font adequately large on different OS
475+
#ifdef WIN32
476+
QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 10 / 8);
477+
#else
475478
QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 8.5 / 9);
479+
#endif
476480
ui->messagesWidget->document()->setDefaultStyleSheet(
477481
QString(
478482
"table { }"

0 commit comments

Comments
 (0)