Skip to content

Properly scale default skin font according to DPI (#1110) #1294

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

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

ge0rdi
Copy link
Member

@ge0rdi ge0rdi commented Jan 18, 2023

Original fix introduced in 528d15 was not correct. The problem is that SystemParametersInfo uses DPI that current session started with.

We should use SystemParametersInfoForDpi (available since Win10 1607) that returns properly scaled font size.

Fixes #1110

Original fix introduced in 528d15 was not correct.
The problem is that `SystemParametersInfo` uses DPI that current session
started with.

We should use `SystemParametersInfoForDpi` (available since Win10 1607)
that returns properly scaled font size.

Fixes #1110
@ge0rdi ge0rdi requested a review from bonzibudd January 18, 2023 08:12
@ge0rdi ge0rdi self-assigned this Jan 18, 2023
@AppVeyorBot
Copy link

@bonzibudd
Copy link
Member

Looks good on both Win11 insider and Win10 22H2. So I assume older Windows versions will have the same behavior as before 05779ca ?

@ge0rdi
Copy link
Member Author

ge0rdi commented Jan 19, 2023

So I assume older Windows versions will have the same behavior as before 05779ca ?

Yup.
Everything older than Win10 1607 will simply need relogon when DPI was changed.

@ge0rdi ge0rdi merged commit 21eea53 into master Jan 19, 2023
@ge0rdi ge0rdi deleted the fix-classic-font-scaling branch January 19, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need more explicit control over text size
3 participants