winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Font scaling is not efficient for PMV2

Open JeremyKuhne opened this issue 2 months ago • 0 comments

https://github.com/dotnet/winforms/blob/9becf03cc9e364a90889672e1f383cd72568a4cb/src/System.Windows.Forms/System/Windows/Forms/Control.cs#L289

We currently create copies of Fonts for every DPI for every Control when PMv2 is enabled. This is hugely inefficient as most Applications do not have a different font on every control.

This should, at a minimum, be coming from a weak referenced scaled Font cache.

JeremyKuhne avatar Nov 07 '25 19:11 JeremyKuhne