Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine what size font Windows 7 has set via C#? [duplicate]

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?

enter image description here

like image 577
JimDel Avatar asked Jan 03 '12 21:01

JimDel


1 Answers

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;
like image 65
jcvegan Avatar answered Oct 22 '22 13:10

jcvegan