可能重复:
How do I detect if the user's font (DPI) is set to small, large, or something else?确定Windows 7通过C#设置的字体大小?
我正在寻找一种方式来恢复设置,如下面的图片中使用?
谢谢?
可能重复:
How do I detect if the user's font (DPI) is set to small, large, or something else?确定Windows 7通过C#设置的字体大小?
我正在寻找一种方式来恢复设置,如下面的图片中使用?
谢谢?
http://nickstips.wordpress.com/2010/11/08/c-programmatically-get-the-current-dpi-setting/ – SLaks 2012-01-03 21:11:14
另外值得注意的是,如果用户更改设置,而你的应用程序是开放的。请参阅[MSDN文章如何:在Windows窗体应用程序中响应字体方案更改](http://msdn.microsoft.com/zh-cn/library/ms229594.aspx) – 2012-01-03 21:16:46