-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ugly RPC Console Output on macOS #273
Comments
Actually, the font family in the default stylesheet Lines 805 to 817 in f0fa324
is set correctly to .AppleSystemUIFontMonospaced .
But this approach (using styleesheets) does not work on macOS. Probably, the reason of such behavior is the fact that UPDATE. From Qt Style Sheets docs:
|
Maybe, the following patch diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 34d055e5a..1acfaa3b2 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -803,7 +803,7 @@ void RPCConsole::clear(bool clearHistory)
}
// Set default style sheet
- QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
+ QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont(true));
ui->messagesWidget->document()->setDefaultStyleSheet(
QString(
"table { }" is a step to fix this issue? |
b9f0aff qt: monospaced output in Console on macOS (randymcmillan) Pull request description: This PR addresses issue #273 A monospace font is used on Linux and Windows for the console output - but not on MacOS. This change forces the MacOS GUI to use the embedded RobotoMono-Bold.ttf font, which is defined as the GUIUtil::fixedPitchFont() ACKs for top commit: hebasto: ACK b9f0aff, Tested on macOS Big Sur 11.6.1 (20G224) + Homebrew's Qt 5.15.2: shaavan: reACK b9f0aff jarolrod: tACK b9f0aff Tree-SHA512: 53e6635a0189e133681c85d442c6c9c4a10438151e4bf7da5bbd62abca7ab55685caf2c9a75ff200aadea771c1602902e6ab14afdc4f411e1b3013dd49625dbc
Closing via #477. |
b9f0aff qt: monospaced output in Console on macOS (randymcmillan) Pull request description: This PR addresses issue bitcoin-core/gui#273 A monospace font is used on Linux and Windows for the console output - but not on MacOS. This change forces the MacOS GUI to use the embedded RobotoMono-Bold.ttf font, which is defined as the GUIUtil::fixedPitchFont() ACKs for top commit: hebasto: ACK b9f0aff, Tested on macOS Big Sur 11.6.1 (20G224) + Homebrew's Qt 5.15.2: shaavan: reACK b9f0aff jarolrod: tACK b9f0aff Tree-SHA512: 53e6635a0189e133681c85d442c6c9c4a10438151e4bf7da5bbd62abca7ab55685caf2c9a75ff200aadea771c1602902e6ab14afdc4f411e1b3013dd49625dbc
Edit: This is a macOS specific issue. A monospace font is used on Linux and windows, but not on macOS. Add to the list of reasons to embed a regular monospace font.
The help output for any RPC command is formatted differently in the macOS GUI
console
versus a Linux GUIconsole
.With the Linux GUI
console
, thetype/descriptions
for anargument/result
are shown at a uniform distance from theargument/result
itself, thanks to the use of a monospace font.With the macOS GUI
console
, thetype/descriptions
do not line up because a monospace font is not used. This leads to 'ugly' output.Example:
help setwalletflag
macOS GUI RPC Console
Linux GUI RPC Console
The text was updated successfully, but these errors were encountered: