aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrandymcmillan <randy.lee.mcmillan@gmail.com>2021-11-21 16:25:03 -0500
committerrandymcmillan <randy.lee.mcmillan@gmail.com>2021-11-22 06:52:42 -0500
commitb9f0aff6b4a64c75d8f937fb9a3546c96d6f5a01 (patch)
treedd67960042cb9a6a69a7da05634bf00495d46259 /src
parentfe03f7a37fd0ef05149161f6b95a25493e1fe38f (diff)
downloadbitcoin-b9f0aff6b4a64c75d8f937fb9a3546c96d6f5a01.tar.xz
qt: monospaced output in Console on macOS
Diffstat (limited to 'src')
-rw-r--r--src/qt/rpcconsole.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 0c3332ab76..6bcdcc4c29 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -866,7 +866,11 @@ void RPCConsole::clear(bool keep_prompt)
}
// Set default style sheet
+#ifdef Q_OS_MAC
+ QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont(/*use_embedded_font=*/true));
+#else
QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
+#endif
ui->messagesWidget->document()->setDefaultStyleSheet(
QString(
"table { }"