K Y

K Y

  • NA
  • 2
  • 639

Using the GlyphTypeface class in a WinForms project changes the form's

Oct 27 2021 9:52 AM

Hello dear community
Here I ran into a problem. In a WinForms application, I use an object of type GlyphTypeface from the System.Windows.Media namespace
As soon as I initialize an object of this type or an object in which this type is a generic parameter (Array, List etc ..) Resolution of the Graphics object drawing the form changes from 96DPI to 120DPI. And the shape visually changes in size. This does not happen in WPF applications.
Maybe some of you came across this problem and knows how to solve it. I would be very glad for any advice and hint.
Best regards to all forum participants