-
-
Notifications
You must be signed in to change notification settings - Fork 23.3k
Editor font: do not embolden the Main Font if it's variable #110737
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
base: master
Are you sure you want to change the base?
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.
Can confirm that this fixes the issue!
Fix makes sense.
I wondered what the magic number 2003265652
stood for. It turns out that it refers to the weight
. I wonder if we should create a constant with a good name for it. Let's see what the folks at Godot have to say about it. :)
f813792
to
d719fc7
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.
Can confirm that this still works.
In the code, I saw also calls looking like this name_to_tag("weight")
. Is there a difference between "wght"
?
Edit: I have been corrected in the comment below. |
|
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.
Code looks good to me.
Fixes #110426
During #106217's writing I was unaware that if the editor's Main Font Bold was unset, it would take the Main Font and embolden it.
In that situation, the weight would be set to bold and the embolden process would happen at the same time, resulting in a very heavy and blurry font.
This changes so emboldening won't happen if the font is variable, as by default, the bold font will be set to have a bold weight.