Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
禁用Xcode内部的抗锯齿?_Xcode_Antialiasing - Fatal编程技术网

禁用Xcode内部的抗锯齿?

禁用Xcode内部的抗锯齿?,xcode,antialiasing,Xcode,Antialiasing,如何在Xcode中禁用代码编辑器内部的抗锯齿,而不是系统范围内的抗锯齿?因此这确实有效,但为了使其生效,您必须: 转到首选项->外观并更改“关闭字体大小的文本平滑”,然后设置字体pt。尺寸 其他有用的命令: defaults -currentHost write .GlobalPreferences AppleSmoothFontsSizeThreshold -int 16 defaults -currentHost write .GlobalPreferences AppleFontSmoo

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

因此这确实有效,但为了使其生效,您必须:

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

其他有用的命令:

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,然后通过ls查看已安装应用程序的可引用名称


希望这对别人有帮助

对于Xcode 3.x,必要的终端命令是:

defaults write com.apple.xcode AppleAntiAliasingThreshold <some integer value>
然后,像往常一样:

defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value>
默认写入com.apple.dt.Xcode AppleAntiAliasingThreshold

使用
AppleAntiAliasingThreshold 24
应该可以满足您的需要。

defaults编写com.apple.dt.Xcode AppleAntiAliasingThreshold 24 绝对有效

非常感谢:在我的CRT上,抗锯齿=模糊。
所以,像Jaime Chan一样,我曾经在xcode 3.x中关闭抗锯齿功能,最初的问题是如何仅在xcode 4中禁用字体抗锯齿功能。使用“defaults write com.apple.XCode…”似乎不起作用。你需要阅读整篇文章。它可以工作,但是您需要同时执行这三项操作,并且还可以在“系统首选项”中设置选项以关闭特定字体大小的文本平滑。在重新启动XCode后可以工作,并且您需要选择一种字体,而不是默认的“Menlo”,无论您做什么,默认的“Menlo”都会保持别名。另一方面,你可以选择摩纳哥,无论你做什么,它看起来总是抗锯齿的(这是终端的默认字体)摩纳哥只卖10磅或更小的。它让Terminus(我最喜欢的控制台字体)看起来像垃圾!但可能是字体有问题。
defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled YES
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value>