Xcode 4 源代码编辑器无法正确显示文本
我的 Xcode 突然开始在源代码编辑器中显示不可读的文本。没有其他应用程序受到影响。最引人注目的是黑色背景上的白色/亮色文本,但它出现在每个主题中。
文本看起来像是背景渗透到前景文本字符中。它看起来并不像您以前在位图字体中看到的“锯齿状”。
这是 Xcode 和使用以下命令的终端之间的并排比较相同的橙黑主题,相同的 Menlo 12 字体。即使在降低分辨率的屏幕截图中,差异也很明显。在屏幕上,终端文本显示清晰且易于阅读,而 Xcode 文本几乎难以阅读,而且实际上毫无用处。
我不知道问题是什么时候开始的,因为我最近没有在 Xcode 中工作。唯一的变化是我在开发盒中添加了第二个显示器,但删除显示器并没有解决问题。
我尝试使用 com.apple.dt.Xcode 默认值将 Xcode 的抗锯齿设置为 24 点,但这也没有效果。
我很困惑。我的下一步将是重新安装 Xcode,但我希望其他人之前可能遇到过这个问题,并且有一个更简洁的解决方案。
My Xcode has suddenly began to display unreadable text in the source editor. No other apps are affected. It is most notable with white/bright-colored text on a black background but it occurs in every theme.
The text looks like the the background is bleeding through the foreground text characters. It doesn't really look like "the jaggies" that you used to see with bitmapped fonts.
Here is s side by side comparison between Xcode and the terminal using the same orange on black theme, at the same font of Menlo 12. Even in the reduced resolution screen shot, the difference is obvious. On screen, the terminal text display is crisp and easily readable while the Xcode text is barely readable and, as a practical matter, useless.
I don't know when the problem may have started because I haven't been working in Xcode recently. The only change is that I added a second monitor to my dev box but removing the monitor did not resolve the problem.
I tried using the com.apple.dt.Xcode
defaults to set the anti-aliasing of Xcode to 24 point but that too had no effect.
I'm stumped. My next step will be to reinstall Xcode but I was hoping someone else may have hit this problem before and has a neater resolution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
重新安装 Xcode 解决了该问题。还没有最模糊的原因。
更新:
Ask Different 的答案可能是也相关。
A reinstall of Xcode resolved the issue. Haven't the foggiest why.
Update:
This answer over at Ask Different might be relevant as well.