Skip to content

Commit 8faca60

Browse files
author
evan82
committed
Merge pull request #213 from UdjinM6/v0.11.2.x_fix_monospace_qt_console
V0.11.2.x fix spaces/monospace fonts in qt console
2 parents 40b2ac6 + 54a78ed commit 8faca60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/qt/guiutil.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ QString HtmlEscape(const QString& str, bool fMultiLine)
227227
#else
228228
QString escaped = str.toHtmlEscaped();
229229
#endif
230+
escaped = escaped.replace(" ", " ");
230231
if(fMultiLine)
231232
{
232233
escaped = escaped.replace("\n", "<br>\n");

src/qt/rpcconsole.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void RPCConsole::clear()
324324
ui->messagesWidget->document()->setDefaultStyleSheet(
325325
"table { }"
326326
"td.time { color: #808080; padding-top: 3px; } "
327-
"td.message { font-family: monospace; font-size: 12px; } " // Todo: Remove fixed font-size
327+
"td.message { font-family: Courier, Courier New, Lucida Console, monospace; font-size: 12px; } " // Todo: Remove fixed font-size
328328
"td.cmd-request { color: #006060; } "
329329
"td.cmd-error { color: red; } "
330330
"b { color: #006060; } "

0 commit comments

Comments
 (0)