在 XCode 中启用代码视图的抗锯齿 [英] Enable anti-aliasing of code view in XCode

查看:28
本文介绍了在 XCode 中启用代码视图的抗锯齿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让 XCode 在启用抗锯齿的编辑器中呈现文本?我在首选项对话框中看不到任何可以执行此操作的内容.

Is there any way to get XCode to render text in the editor with anti-aliasing enabled? I can't see anything in the preferences dialog that would do it.

推荐答案

Xcode 和 Terminal 中的默认代码字体是 10-point Monaco,传统上抗锯齿,因为有手动-为此调整了位图.

The default code font in Xcode and Terminal is 10-point Monaco, which is traditionally not anti-aliased because there are hand-tuned bitmaps for this.

您可以使用字体 &Xcode 首选项中的颜色面板让 Xcode 使用您喜欢的任何字体、大小和颜色.例如,如果您需要抗锯齿文本,您可以使用 11 磅 Monaco 或更大字体,或者如果像素清晰度对您很重要,您可以使用多种纯位图编程字体中的一种,其原始大小.

You can use the Fonts & Colors pane in the Xcode Preferences to have Xcode use whatever fonts, sizes and colors you prefer. For example, you could use 11-point Monaco or larger if you want anti-aliased text, or you could use one of a number of bitmap-only programming fonts at their native sizes if pixel-sharpness matters to you.

就我个人而言,我更喜欢使用 Courier 12 和 Inconsolata 13 进行编码.Courier 随 Mac OS X 一起提供,而 Inconsolata 是一个来自 Raph Levien 的免费等宽字体.

Personally, I rather like Courier 12 and Inconsolata 13 for coding. Courier comes with Mac OS X, while Inconsolata is a free monospaced font from Raph Levien.

这篇关于在 XCode 中启用代码视图的抗锯齿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆