-
Notifications
You must be signed in to change notification settings - Fork 991
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
Font style does not work in Application.SetDefaultFont() when the text scale value is bigger than 100% in OS #4978
Labels
🪲 bug
Product bug (most likely)
Comments
This issue was found after the PR: #4911 merged. |
The problem is here:
We need to set FontStyle too:
s_defaultFontScaled = new Font(s_defaultFont.FontFamily, s_defaultFont.Size * textScaleValue, s_defaultFont.Style); Miss it too during review :( |
🤦♂️ |
RussKie
added a commit
to RussKie/winforms
that referenced
this issue
Jun 2, 2021
ghost
removed this from the 6.0 Preview6 milestone
Jun 3, 2021
RussKie
added
🪲 bug
Product bug (most likely)
and removed
help wanted
Good issue for external contributors
labels
Jun 3, 2021
Verified with .NET 6.0.100-preview.7.21320.2 from main branch, this issue has been fixed that font style works as above when the text scale value is bigger than 100% in OS. |
Verified the issue with .NET 6.0 6.0.100-preview.6.21323.1, it is fixed as above result too. |
ghost
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
.NET Core Version:
.NET SDK 6.0.100-preview.5.21275.4
Have you experienced this same bug with .NET Framework?:
No
More Info:
This issue occurs in other System.Drawing.FontStyle enum values too, like Bold, Strikeout and Underline...
Problem description:
The font style is not Italic for controls in form.
Expected behavior:
The font style should be Italic in form, like it works when text scale is 100%.
Minimal repro:
The text was updated successfully, but these errors were encountered: