是否可以仅在Visual Studio上启用ClearType?

时间:2022-09-02 17:37:01

I really like how Consolas looks with ClearType enabled but unfortunately it makes everything else look terrible. Is there any way to enable this on a per app basis? I noticed that putty (the terminal emulator) has options for ClearType separate from the display setting.

我真的很喜欢Consolas在启用ClearType时的外观,但不幸的是它使其他一切看起来很糟糕。有没有办法在每个应用程序的基础上启用它?我注意到putty(终端模拟器)具有与显示设置分开的ClearType选项。

2 个解决方案

#1


It is possible to have an application that enables or disables ClearType independently of the system-wide setting... but it requires that the application be specifically written to do it, since it involves passing specific parameters to the Windows API when you're creating fonts. Unfortunately, to my knowledge, VS wasn't written to do this. (And, incidentally, I don't think .NET supports it either, without resorting to P/Invoke.)

可以让应用程序独立于系统范围的设置启用或禁用ClearType ......但它需要专门编写应用程序来执行此操作,因为它涉及在创建时将特定参数传递给Windows API字体。不幸的是,据我所知,VS并没有写这么做。 (而且,顺便说一下,我不认为.NET也支持它,而不使用P / Invoke。)

#2


Getting bad results with ClearType but good looking Consolas is pretty strange. Try out the ClearType tuner.

使用ClearType获得不良结果,但外观漂亮Consolas非常奇怪。试试ClearType调谐器。

#1


It is possible to have an application that enables or disables ClearType independently of the system-wide setting... but it requires that the application be specifically written to do it, since it involves passing specific parameters to the Windows API when you're creating fonts. Unfortunately, to my knowledge, VS wasn't written to do this. (And, incidentally, I don't think .NET supports it either, without resorting to P/Invoke.)

可以让应用程序独立于系统范围的设置启用或禁用ClearType ......但它需要专门编写应用程序来执行此操作,因为它涉及在创建时将特定参数传递给Windows API字体。不幸的是,据我所知,VS并没有写这么做。 (而且,顺便说一下,我不认为.NET也支持它,而不使用P / Invoke。)

#2


Getting bad results with ClearType but good looking Consolas is pretty strange. Try out the ClearType tuner.

使用ClearType获得不良结果,但外观漂亮Consolas非常奇怪。试试ClearType调谐器。