大家都用啥字体编程呢?进来看看,这个适合你么?
转自:
http://blog.htmlor.com/2007/10/14/good_programming_fonts/网站开发编程时,代码字体很重要。如果选择得当,加上IDE顺手、代码颜色舒服,简直是完美的开发环境;一旦字体选的不好,就会看的人头昏脑胀、眼睛发酸——对开发者和阅读者都是一种折磨。
选择代码字体时,基本要有如下标准:
- 等宽
这应该是最基本的条件了。
- 字符清晰
如果代码看不清楚,字体再漂亮也没用。
- 没有字符混淆
1 / l / i / I 不能混淆,0 / o / O 不能混淆。
- 标点符号明显
大、中、小括号,单、双引号等常用符号要明显可辨,不要奇形怪状。
以下列出几种好看又好用的字体,与大家分享。(参考文章:《Revisiting Programming Fonts》,《Monospace/Fixed Width Programmer’s Fonts》)
ClearType 启用
(什么是 ClearType ?请看这篇介绍)
启用 ClearType 后,适用的字体有:
Consolas - 11pt/14px (快速下载)
![Consolas,11pt](http://photo11.yupoo.com/20071014/184702_1769767484_fwtormei.jpg)
Bitstream Vera Sans Mono - 11pt/14px (快速下载)
![Bitstream Vera Sans Mono,11pt](http://photo11.yupoo.com/20071014/184649_1251855294_pgvypkgc.jpg)
Lucida Sans Typewriter - 11pt/14px (快速下载)
![Lucida Sans Typewriter,11pt](http://photo11.yupoo.com/20071014/184821_442588530_zppsjggu.jpg)
Monaco - 11pt/14px (快速下载)
![Monaco,11pt](http://photo5.yupoo.com/20071014/184956_205405205_oxvlcvmg.jpg)
Andale Mono - 11pt/14px (快速下载)
![Andale Mono,11pt](http://photo11.yupoo.com/20071014/184655_1477564399_azuebedy.jpg)
Pragmata - 11pt/14px (快速下载)
![Pragmata,11pt](http://photo5.yupoo.com/20071014/184634_1650033970_ngrbljtw.jpg)
Envy R - 11pt/14px (快速下载)
![Envy R,11pt](http://photo5.yupoo.com/20071014/184718_1675569134_tfsyvtky.jpg)
ClearType 未启用
未启用或无法使用 ClearType 时,以下字体比较合适:
Courier New - 9pt/12px (快速下载)
![Courier New,9pt](http://photo11.yupoo.com/20071014/184715_350529283_hojkmxlh.jpg)
Lucida Sans Typewriter - 9pt/12px (快速下载)
![Lucida Sans Typewriter,9pt](http://photo11.yupoo.com/20071014/185010_383094046_uswcqjln.jpg)
Andale Mono - 9pt/12px (快速下载)
![Andale Mono,9pt](http://photo5.yupoo.com/20071014/184641_1362579795_vhbmcfad.jpg)
CodingFontTobi - 12pt/16px (快速下载)
![CodingFontTobi,12pt](http://photo5.yupoo.com/20071014/184706_1839388412_ugryrayf.jpg)
ProFontWindows - 9pt/12px (快速下载)
![ProFontWindows,9pt](http://photo5.yupoo.com/20071014/184640_268235301_bvjzhcgw.jpg)
暂时就这么多,期待更好的字体出现吧。
posted on 2009-03-18 16:11
JasonChou 阅读(3142)
评论(0) 编辑 收藏 所属分类:
Tec.other