在Xcode中禁用抗锯齿?

问题描述:

如何禁用Xcode中代码编辑器中的抗锯齿功能,但不是系统范围内的?在Xcode中禁用抗锯齿?

对于Xcode的3.x中必要端子命令:

defaults write com.apple.xcode AppleAntiAliasingThreshold <some integer value> 

对于Xcode的4 & 5,它是:

defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value> 

对于Xcode的6可能首先需要输入在下面终端控制台:

defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled YES 

然后按照惯例:

defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value> 

使用AppleAntiAliasingThreshold 24应该得到你想要的。

+3

完全做到了,谢谢! – 2011-05-17 17:11:40

+1

重新启动XCode后工作,并且您需要选择默认的“Menlo”以外的字体,无论您做什么,该字体似乎都会保留别名。另一方面,你可以选择摩纳哥,不管你做什么,这都是反锯齿的(这是终端的默认字体)。 – iforce2d 2011-11-26 15:32:28

+0

编辑:啊......'摩纳哥'只有10点或更小。 – iforce2d 2011-11-26 15:38:19

所以这个工作,但为了使其生效,您必须:

去首选项 - >外观并更改“关闭文本平滑的字体大小”,并设置字体磅。尺寸。

是有益的

其他命令:

defaults -currentHost write .GlobalPreferences AppleSmoothFontsSizeThreshold -int 16 

defaults -currentHost write .GlobalPreferences AppleFontSmoothing -int 0 

还,如果你只是想改变,而不是一切特定的应用程序,这样做的伎俩:

defaults write com.apple.safari AppleSmoothFixedFontsSizeThreshold -int 16 

defaults write com.apple.safari AppleSmoothFontsSizeThreshold -int 16 

defaults write com.apple.safari AppleAntiAliasingThreshold -int 16 

这将关闭防对于小于16的任何字体都会出现锯齿。

我在编辑代码时遇到了同样的问题,花了我很多时间去解决它。

此外,你可以改变任何你想要的应用程序,只需检查你安装的应用程序,从命令终端cd到〜/ Library/Preferences,然后查看已安装应用程序的可引用名称。

希望这可以帮助别人!

+0

原始问题是如何禁用XCode 4中的字体抗锯齿。使用“defaults write com.apple.XCode ...” t似乎工作。 – 2011-03-28 22:47:42

+0

您需要阅读整篇文章。它的工作原理,但是你需要做的三个,并在系统偏好设置选项关闭文本平滑特定的字体大小。 – bigglestix 2011-04-04 21:38:32

默认写入com.apple.dt.Xcode AppleAntiAliasingThreshold 24 绝对有效!

非常感谢:在我的CRT上,抗锯齿=模糊。 所以,就像Jaime Chan,我曾经关闭xcode 3.x中的antialias