简体   繁体   English

在Mountain Lion中禁用Xcode 4.4中的抗锯齿字体

[英]Disable Anti-Aliasing Fonts in Xcode 4.4 in Mountain Lion

It's getting pretty frustrating to keep struggling with this one. 继续为此苦苦挣扎变得非常沮丧。 I'm not sure if it's Xcode 4.4 or Mountain Lion (I installed both simultaneously), but once again my code is being anti-aliased (font smoothing) in Xcode. 我不确定是Xcode 4.4还是Mountain Lion(我同时安装了两者),但是我的代码再次在Xcode中被抗锯齿(字体平滑)。

I was previously able to fix this issue with the following instructions, taken from this question , but neither seem to work now: 我以前可以通过以下指示信息来解决此问题,该指示信息取自该问题 ,但现在似乎都不起作用:

For XCode 3.x I would do the following: defaults write com.apple.xcode AppleAntiAliasingThreshold 24 . 对于XCode 3.x,我将执行以下操作: defaults write com.apple.xcode AppleAntiAliasingThreshold 24

For XCode 4 the domain of the user defaults change to com.apple.dt.Xcode. 对于XCode 4,用户的默认域更改为com.apple.dt.Xcode。 For XCode 4 defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24 should get you what you want. 对于XCode 4 defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24应该defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24您的要求。

How do I get Xcode back to a useable state? 如何使Xcode返回可用状态?

From the Release Notes: https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW680 从发行说明中: https : //developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW680

Text and font rendering on OS X v10.8 is optimized for Retina display. OS X v10.8上的文本和字体渲染针对视网膜显示进行了优化。 On a non–Retina display running OS X v.10.8, some font configurations can appear blurry in Xcode. 在运行OS X v.10.8的非Retina显示器上,某些字体配置在Xcode中可能显示为模糊。 11486875 Switch back to non–Retina display optimized text and font appearance in Xcode by enterin this command in Terminal: 11486875通过在终端中输入以下命令,以Xcode切换回非视网膜显示优化的文本和字体外观:

defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled -bool YES

It worked for me on Mac Pro running Xcode 4.4 on Mountain Lion. 它适用于在Mountain Lion上运行Xcode 4.4的Mac Pro。

I also had this problem when upgrading to ML. 升级到ML时我也遇到了这个问题。 System Preferences > General > Untick 'Use LCD font smoothing when available' seemed to fix it for me. System Preferences > General > Untick 'Use LCD font smoothing when available'似乎可以解决此问题。

lifjoy的答案不适用于OS X 10.8.2和XCode 4.5,因此我找到了另一个解决方案:

defaults -currentHost write -globalDomain AppleFontSmoothing -int 0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM