Skip to content

System font scaling not working on the fly#14748

Open
JayashreeSF3546 wants to merge 2 commits into
dotnet:mainfrom
JayashreeSF3546:Fix_Issue_3583
Open

System font scaling not working on the fly#14748
JayashreeSF3546 wants to merge 2 commits into
dotnet:mainfrom
JayashreeSF3546:Fix_Issue_3583

Conversation

@JayashreeSF3546

@JayashreeSF3546 JayashreeSF3546 commented Jul 16, 2026

Copy link
Copy Markdown

Fixes #3583

Proposed changes

  • Updated default font change handling to react when the system/default font changes at runtime.
  • Cleared cached default/control font handles before raising OnFontChanged.

Customer Impact

  • WinForms apps using inherited/default fonts now refresh more reliably when system text size/font changes.
  • Reduces inconsistent UI states where text updates but controls do not visually refresh correctly until restart.

Regression?

  • No

Risk

  • Low to medium: touches runtime font-change handling, but only for controls using the default/inherited font path.

Screenshots

Before

image

After

image

Test methodology

  • Verified behavior manually with a WinForms sample using AutoScaleMode.Font.
  • Tested runtime increase/decrease of system text size/font and observed control refresh behavior.
  • Confirmed explicitly set control fonts are not affected by the default/inherited font update path.

Accessibility testing

  • No accessibility behavior change expected. This change only updates runtime font refresh behavior for controls using the default/inherited font.

Test environment(s)

  • Windows 11
  • .NET SDK: 11.0.100-preview.3.26170.106
Microsoft Reviewers: Open in CodeFlow

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.

System font scaling not working on the fly

1 participant