有关编程时候采用的字体

最近编程眼睛总是疼痛不堪, 而且vs系列对应的默认字体太...了一点, 所以我决定换个更适合编程的, 随意的google一下, 转载一个合适的文章. 得出结论, 就是使用concolas这种单间距的屏幕字体在LCD上面更清晰, 更容易看清楚. 我个人认为, 本篇文章里面写的分数11point, 简直扯淡, 如果使用字体不满足单字符定宽的话, 将造成代码无法对齐, 对编程的影响甚大, 见原文的god字体....附原文...之前, 感谢google.com

Revisiting Programming Fonts

I've experimented with programming fonts and IDE color schemes plenty in the past. But now that I've given in to the inevitability of ClearType on large LCDs, I've basically settled on Consolas. It's hard to beat Consolas. It's darn close to the ultimate monospace programming font in my estimation. That's why I was so intrigued when I read about Inconsolata, a non-denominational OpenType relative of Consolas, which unlike Consolas, works equally well with ClearType enabled or disabled.

Once I tried out Inconsolata, I figured I might as well revisit all the common, popular programming fonts under the same conditions. So here goes. These are rendered under Windows Vista, with ClearType enabled, using my standard programming font comparison code sample.

Consolas, 11 point.

Consolas font, code sample

Inconsolata, 11 point.

Inconsolata font, code sample

Monaco, 11 point.

Monaco font, code sample

Envy R, 11 point.

Envy R font, code sample

Vera Sans Mono, 11 point.

Vera Sans Mono font, code sample

Pragmata, 11 point.

Pragmata font, code sample

Courier New, 11 point.

programming-fonts-2-couriernew.png

Lucida Typewriter, 11 point.

Lucida Sans Typewriter font, code sample

The Font of the Gods, 11 point.

Comic Sans font, code sample

Andale Mono, 11 point.

Andale Mono font, code sample

Choice of programming font is as much a personal preference as anything else. Decide for yourself what works for you. I'll limit my comments to a few observations:

 

  1. Please don't use the default Courier New typeface. Be kind to your eyes.
  2. Personally, I still don't think anything beats Consolas; it's an outstanding monospace typeface design, highly optimized for ClearType display on LCDs.
  3. I'll never understand the appeal of Monaco amongst the Mac crowd. It's an unreadable mess to my eye.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值