2010-11-09 34 views
5

我有一个主窗体(WinForm),它应该在不使用ClearType的情况下呈现其内容。更确切地说,该表单中的RichTextBox应该呈现不带ClearType的文本。在最终用户系统中打开ClearType时,如何防止它影响我的应用程序?不受ClearType全局设置影响的WinForm应用程序

我没有找到如何用System.Drawing实现这一点,也不知道P/Invoke解决方案。

+0

它是如何影响你的应用程序检查? – leppie 2010-11-09 03:54:31

+0

leppia:它会影响RichTextBox用户输入区域内的文本 – Bohoo 2010-11-09 04:20:52

回答

1

我不知道如何设置它,但你可以从

int x = System.Windows.Forms.SystemInformation.FontSmoothingType; 
//x=1 when SmoothingType is Standard 
//x=2 when SmoothingType is ClearType 
相关问题