-
Notifications
You must be signed in to change notification settings - Fork 187
[win32] Use consistent font zoom retrieval #1983
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
[win32] Use consistent font zoom retrieval #1983
Conversation
21bf53f to
be9b308
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.
Looks rather cleaner to me. Also using a getter makes it more abstract for the consumers since they don't need to worry about which component's nativeZoom they should use. Approved.
| return GC.win32_new(hDC, data); | ||
| } | ||
|
|
||
| int getFontZoom() { |
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.
Just a suggestion, can we not call it getNativeZoom? Since, I am not sure if getFontZoom would make sense for every kind of widget + the method name sounds more relevant to what it returns.
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.
Hmm, yes, makes sense. It is solely used for fonts right now, but that method would not be limited to this purpose. I will rename it.
be9b308 to
0f4b54f
Compare
This commit unifies the extraction of the target zoom of a font to be affected by the zoom context of the underlying Widget. Before there were different strategies like getting it from the Shell.
0f4b54f to
a32a561
Compare
|
Version increment check is failing for infrastructure reasons and no further version bump is required here. |
This PR unifies the extraction of the target zoom of a font to be
affected by the zoom context of the underlying Widget. Before there
were different strategies like getting it from the Shell.