-
Notifications
You must be signed in to change notification settings - Fork 271
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
Monospaced output in Console on macOS #477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK
This is a definite improvement over the currently displayed font.
However, I think the newly displayed font is too bold and looks very bulky when there is a lot of text on the screen. Like in this screenshot:
What do you think about experimenting with a lighter version of the monospace font?
For example, in #273, the screenshot of Linux GUI RPC Console displays a lighter version of the monospace font. That text looks very light while each word is also easily readable.
Screenshot:
This issue has been posted since April (7 months) - if you want to focus on a bunch of minutia - feel free to on your own time. I am not burning a bunch of time on a 30 second edit that anybody else could have done. |
Well, I was not expecting such an aggressive response. I was under the impression that the goal of this PR was to fix the problem entirely and not just to fix a tiny issue that anybody could have fixed. |
@shaavan - may apologizes for the tone of my previous response... The whole embedding fonts approach opens up a whole can of worms - which I prefer to avoid. There is clearly a more elegant fix which you may want to implement and I would be open to reviewing and contributing to. With that said - this PR is a minimal fix which shouldn't evoke the font issues. |
15eb511
to
4516e39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may apologizes for the tone of my previous response...
It's okay. Sometimes all of us feel a little out of place and may lose our cool. The good thing is to accept our mistakes humbly. So I appreciate that.
With that said - this PR is a minimal fix which shouldn't evoke the font issues.
I understand the context of this PR now. And IMO this PR accomplishes the goal it set out to achieve.
ACK 4516e39
ACK 4516e39. |
I would be happier enclosing the new code under __APPLE__ ifdefs though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK.
I would be happier enclosing the new code under __APPLE__ ifdefs though.
Agree that there are no reasons to change look in systems that do not require any change.
Would you mind to provide the pr description? And refer to #273 in it?
Also please use qt:
prefix in the commit message instead of rcpconsole.cpp:
.
7057f10
to
9e6775d
Compare
ACK 9e6775d. I'd be happier with a commit message bringing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach ACK 9e6775d.
35cd6ba
to
b9f0aff
Compare
ACK b9f0aff, Tested on macOS Big Sur 11.6.1 (20G224) + Homebrew's Qt 5.15.2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reACK b9f0aff
Changes since my last review:
- Applied
ifdef
,endif
conditional statement to prevent this change from affecting other Operating Systems. This change prevents the risk of having unintentional behavior changes on some OS. - Added
/*use_embedded_font=*/
in the argument of fixedPitchFont function. This is done to make the code more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK b9f0aff
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
Well a couple of late points... I'm always swamped y'know.
Cheers! |
I will take another look - to see how the boldness can be addressed. :) |
After #497, it should be simpler to make the console font user-configurable. |
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()