dotnet / dotnet/winforms

[Tracking] DefaultFont is static and could cause issues in PermonitorV2 applications.

Open
#9,111 1 comment 0 reactions 0 assignees View on GitHub
area-HDPI
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

.NET 8.0

### Did it work in .NET Framework?

No

### Did it work in any of the earlier releases of .NET Core or .NET 5+?

NO

### Issue description

`DefaultFont `in WinForms is static and currently does not consider the DPI of the monitor into consideration. This need to be investigated for all scenarios in PermonitorV2 mode applications.

Currently, `DeviceContext `and Font are defaulting to primary monitor and seems working as expected but would need deeper investigation/understanding

### Steps to reproduce

Any PerMonitor V2 mode WinForms application with dual monitor with different DPI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.