none
Change Text Font Size Units in Properties Window

    Question

  • How do I Change Text Font Size Units in the properties window to show px instead of pt? Thanks
    Thursday, January 07, 2016 8:10 PM

Answers

  • The font size is not specified in pixels, it's specified in points.  The ratio of points to pixels is defined by your scaling level.  The application does not consider this level when showing you the size of the font.

    If you need to write code to deal with a font in terms of pixels then you'll need to create the font with a different constructor.  For the UI, it uses the scalable units (points).

    Which font are you trying to change and are we talking about in your code or in the Visual Studio IDE?

    Thursday, January 07, 2016 8:35 PM

All replies

  • The font size is not specified in pixels, it's specified in points.  The ratio of points to pixels is defined by your scaling level.  The application does not consider this level when showing you the size of the font.

    If you need to write code to deal with a font in terms of pixels then you'll need to create the font with a different constructor.  For the UI, it uses the scalable units (points).

    Which font are you trying to change and are we talking about in your code or in the Visual Studio IDE?

    Thursday, January 07, 2016 8:35 PM
  • Thank you for your help. I was able to figure it out:)
    Monday, March 21, 2016 10:22 PM