Possible Duplicate:
How do I detect if the user's font (DPI) is set to small, large, or something else?
I'm looking for a way to retrieve the setting as used in the picture below?
Thanks?
Possible Duplicate:
How do I detect if the user's font (DPI) is set to small, large, or something else?
I'm looking for a way to retrieve the setting as used in the picture below?
Thanks?
Check under class SystemFonts. I don't think you need more than the default namespaces for this.
string name = SystemFonts.IconTitleFont.FontFamily.Name;
float size = SystemFonts.IconTitleFont.Size;
I believe this is already answered here:
How to get Windows Display settings?
The IconTitleFont information would just give you the font size whereas you seem to be looking for the magnification level.