-
Notifications
You must be signed in to change notification settings - Fork 467
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
Removed font size multiplier #3531
Conversation
Plugin/clScrolledPanel.cpp
Outdated
#elif defined(__WXMSW__) | ||
// wxMSW | ||
float pointSize = f.GetFractionalPointSize() * 1.2; | ||
float pointSize = f.GetFractionalPointSize(); | ||
f.SetFractionalPointSize(pointSize); |
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.
So whole __WXMSW__
block can be removed
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.
Something like this, i guess.
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.
No need to set same value for other, simply
wxFont clScrolledPanel::GetDefaultFont()
{
wxFont f = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
#if defined(__WXMAC__)
float pointSize = f.GetFractionalPointSize() * 1.2;
f.SetFractionalPointSize(pointSize);
#endif
return f;
}
or
wxFont clScrolledPanel::GetDefaultFont()
{
wxFont f = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
#if defined(__WXMAC__)
f.SetFractionalPointSize(1.2 * f.GetFractionalPointSize());
#endif
return f;
}
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.
Yes, really, I am setting the same value back.
Thank you! |
Unsure why you close your PR. Note that:
|
My bad, I thought it was finished. |
Even though some CI are failing - these were fixed in master branch. Once the Ubuntu build is OK, I will merge it |
On Windows, IDE fonts in a project tree, editor tabs etc are noticeably larger than a system font. That was because an IDE font was 20% bigger than a system one. Tested it on 4K and 1080p.