在 Xcode 中禁用抗锯齿功能?

发布于 2024-10-21 12:54:28 字数 49 浏览 8 评论 0原文

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

How does one disable antialiasing inside the code editor in Xcode, but not system-wide?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

总以为 2024-10-28 12:54:28

对于 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 应该可以满足您的需求。

For Xcode 3.x the necessary terminal command is:

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

For Xcode 4 & 5 it is:

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

For Xcode 6 you may first need to enter the following at a terminal console:

defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled YES

Then, as per usual:

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

Using AppleAntiAliasingThreshold 24 should get you what you want.

日记撕了你也走了 2024-10-28 12:54:28

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

转到首选项->外观并更改“关闭字体大小的文本平滑”并设置字体 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 查看已安装应用程序的可引用名称。

希望这对某人有帮助!

so this does work, but in order for it to take effect, you must:

go to preferences->appearance and change "turn off text smoothing for font sizes" and set the font pt. size.

other commands that are helpful:

defaults -currentHost write .GlobalPreferences AppleSmoothFontsSizeThreshold -int 16

defaults -currentHost write .GlobalPreferences AppleFontSmoothing -int 0

also, if you just want to change a specific application, instead of everything, this does the trick:

defaults write com.apple.safari AppleSmoothFixedFontsSizeThreshold -int 16

defaults write com.apple.safari AppleSmoothFontsSizeThreshold -int 16

defaults write com.apple.safari AppleAntiAliasingThreshold -int 16

this will turn off anti aliasing for any font that is smaller than size 16.

I had this same problem for editing code, took me ages to work it out.

Also, you can change any application you want, just check out your installed apps, from a command terminal cd to ~/Library/Preferences and then ls to see the referencable names of installed apps.

Hope this helps someone!

夜无邪 2024-10-28 12:54:28

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

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

defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24
definitely works !

Many thanks for this : on my CRT, antialiasing = blurring.
So, like Jaime Chan, i used to turn off antialias in xcode 3.x

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文