- 浏览: 849459 次
- 性别:
- 来自: lanzhou
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
I’m a typeface geek, and when it comes to selecting a font I’ll stare at all day, I tend to be pretty picky. Recently, when I discovered that a friend was using a sub par typeface (too horrible to name here) for his Terminal and coding windows, my jaw dropped, my heart sank a little, and I knew it was due time for me to compose this article.
What follows is a round-up of the top 10 readily-available monospace fonts. Many of these fonts are bundled along with modern operating systems, but most are free for download on the web. A few, notably Consolas, are part of commercial software.
A note about anti-aliasing
In the past, we’ve had to decide between tiny monospace fonts or jagged edges. But today, modern operating systems do a great job of anti-aliasing, making monospace fonts look great at any size. It’s not 1990 anymore. Give your tired eyes a break and bump up that font size.
If you have any doubt that anti-aliased fonts are apropos for code, note that even the venerable BBE dit — which for years has shipped with un-aliased Monaco 9 set as the default — has made the jump. The app now ships with a specially licensed version of the Consolas font from Ascender, bumped up in size, and with anti-aliasing on by default. Panic includes a special anti-aliased font (Panic Sans, which is actually just a version of Deja Vu Sans Mono) with its popular Coda application.
Unless otherwise noted, I’ve used a larger size font, 15-point in fact, for the examples here to illustrate their legibility at larger sizes and with anti-aliasing turned on.
10. Courier
All systems ship with a version of Courier (sometimes Courier New), and unfortunately, many have it set as the default font for terminal and editor windows. It does the job, but it’s a bit dull and boring, lacking style and class. I don’t recommend this font if you have any other choice — and fortunately, you do. If you use this font, please bump the size and turn on anti-aliasing.
9. Andale Mono
A bit better than the Courier family, Andale Mono is still relegated to the “default font” category as it ships with some systems, and you wouldn’t want to download or use it if it wasn’t already there. The character-spacing is a bit too clumsy and the letters are a bit too wide for my tastes.
8. Monaco
Monaco is the default monospace font on the Mac and has been since its inclusion in System 6 . It’s a solid, workhorse font that really shines at smaller font sizes with anti-aliasing turned off . I loved this typeface back when my eyes could tolerate staring at a 9-point font for hours, but those days are behind me. This font looks great at 9 or 10-points (Figure 4), and doesn’t look too shabby anti-aliased at higher sizes (Figure 3).
As far as I know, you can only get Monaco as a part of Mac OS, but there are alternatives, so keep reading.
7. Profont
Profont is a Monaco-like bitmap font available for Mac, Windows, and Linux (there’s also a modified version for Mac OS X called ProFontX by a different author). They’re best at smaller sizes, and make a great alternative to Monaco if you’re on a non-Mac platform and want really tiny fonts and the eyestrain that goes along with them.
Profont (and ProFontX) is intended for use at 9-points with anti-aliasing turned off.
6. Monofur
Monofur is a unique monospace font that looks great anti-aliased at all sizes. It’s a fun font with a distinct look that is vaguely reminiscent of Sun’s OPEN LOOK window manager, which ran Solaris (aka SunOS) systems back in the late 80’s. If you’re looking for something a bit different, try this font, but make sure you have anti-aliasing turned on, even at small sizes.
5. Proggy
Proggy is a clean monospace font that seems to be favored by Windows users, although it works fine on a Mac. It’s a clean font intended to be used only at smaller points, and without anti-aliasing.
4. Droid Sans Mono
The Droid font family (available for download here ) is a nice font family designed for use on the small screens of mobile handsets, like Android , and licensed under the Apache license.
Droid Sans Mono makes for a great programming font. It’s got a bit of flair, and stands out among the other monospace fonts I’ve listed, and its only real flaw is the lack of a slashed zero.
3. Deja Vu Sans Mono
The Deja Vu family of fonts are one of my favorite free font families, based on the excellent Vera Font family . The Deja Vu fonts have been updated with a wider range of characters while maintaining a similar look and feel to that of Vera.
This was my go-to font family for many years. It looks great at any size with anti-aliasing turned on.
Panic ships a font with it’s Coda application called “Panic Sans” which is based on this font. Gruber says via email that when he compared Panic Sans against Vera, he noted that “Panic had noticeably crisper punctuation chars” and that it seemed like they had improved the hinting on some characters as well.
2. Consolas
Consolas suddenly appeared on my Mac after I installed Microsoft Office, along with a handful of other new fonts from Microsoft.
This font was designed by Luc(as) de Groot for Microsoft’s ClearType font family (there’s a nice write-up with samples of each of the new Microsoft fonts here ). Consolas is a commercial font, but is bundled with many Microsoft products, so there’s a good chance you might already have it on your system.
You’ll absolutely want to have anti-aliasing turned on if you’re using Consolas, because it’ll look terrible without it.
Too bad it’s not free … if it was, it would be #1 on this list.
1. Inconsolata
Inconsolata is my favorite monospaced font, and it’s free. Shortly after discovering it, it quickly supplanted Deja Vu Sans Mono as my go-to programming font. I use it everywhere, from Terminal windows to code editors. It has a certain sublime style that’s unique without being over the top, and it looks fantastic at both large and small sizes. I use this font when I show code samples in a presentation, and it’s the font we use in Terminal and TextMate windows when filming PeepCode screencasts .
Inconsolata is designed to be used with anti-aliasing enabled, but it’s surprisingly legible even at very small sizes. A big thanks to Raph Levien for creating this font, and for making it free .
Thoughts?
Did I miss your favorite coding typeface? Think the list is out of order? Let me know. If there’s a typeface you think should be in this list, please let me know in the comments section below. If it meets my ridiculous standards, I’ll review it and include it in a follow-up article.
发表评论
-
为什么中国出不了扎克伯格
2010-03-12 08:01 1114他们已基本失去成为互 ... -
不会编程的程序员
2010-03-06 12:39 919我想这让人难以置信, ... -
让代码更美:10大编程字体
2010-01-21 13:36 1734日复一日的编写代码, ... -
Everything you need to know about Android 2.0
2009-11-07 21:03 1078Android 2.0 (formerly codenamed ... -
Linux: still better for coding
2009-11-05 08:01 824Something like one year ago I s ... -
Speed Up and Back Up Your Rooted Android Phone
2009-10-31 15:16 1064If you've rooted your Android p ... -
Five Favorite Web Applications of Designers
2009-10-18 08:36 928Webapps –compared to their des ... -
The Best Programming Language for a Lean Startup
2009-10-18 08:31 1196Think arguments between religio ... -
5 Excuses Bad Programmers Make
2009-10-16 16:51 707It’s a common problem, there’s ... -
How to Create a Twitter Feed on Your Web Site
2009-10-08 08:50 1007Twitter has quickly become one ... -
How NOT to test that mysqld is alive
2009-10-06 09:35 883I had a call from a new custo ... -
CodeThatDocumentsItselfSoWellItDoesNotNeedComments
2009-10-06 07:56 708“When I first met the lead de ... -
The Evolution of a Programmer
2009-10-06 07:54 698High School/Jr.High 10 PRI ... -
将Web入侵消灭在萌芽之中——预防SQL注入
2009-10-05 08:38 1058国家互联网应急中心CN-S ... -
阿里要走102年 阿里的工程师能走多远?
2009-10-04 08:46 671很高兴看到阿里云的 ... -
支持云应用程序服务的PHP API
2009-10-03 08:14 1014自称“PHP公司”的Zend Technologies发起 ... -
Java is dead, but you'll learn to love it
2009-10-02 08:32 1067A favorite hobby-hors ... -
程序员需要知道的97件事
2009-10-02 08:24 1433继架构师需要知道的97件事(参看InfoQ此前的报道)之后,该 ... -
Google Wave: There Will Be Backlash
2009-10-01 08:11 740Have you gotten your Google W ... -
A Letter To The Programmer
2009-09-30 08:25 840This is a letter that I would n ...
相关推荐
标题“Fonts_win10_Ver21H1.rar”指的是一个包含了Windows 10系统字体的压缩文件,版本为21H1。这个文件可能是针对Windows 10系统的一次更新,提供了最新的字体资源,方便用户进行安装或更新。21H1是微软对Windows ...
在标题和描述中提到的"vfs_fonts大全",指的是一个包含了多种VFS字体实现的集合,可能包括不同版本或不同功能侧重的解决方案。 VFS Fonts的核心目标是在Web页面上实现离线存储和动态加载字体,这在处理大量自定义...
支持Windows 10 x64 2004/20H2版本的中文字体功能包 安装方法dism /online /Add-Package /PackagePath:D:\Win10x64-20H2-LanguageFeatures-Fonts-Hans-Package.cab
如果遇到MD5加密文件(一般都是这个),而又不知道密码的, ┃ ┃ 请用这组加密的数据7a57a5a743894a0e替换即可,那么密码就是:admin ┃ ┃ (这个是16位的,32位的是:21232f297a57a5a743894a0e4a801fc3)
`fallback_fonts_fallback_fonts.xm_log_android_`这个标题可能指的是一个关于Android应用中字体回退机制的日志文件或配置,用于记录或管理应用程序在处理多种字体情况时的行为。描述提到的“完整的Android字体显示...
总之,这个“windows-Fonts.zip”压缩包包含的是Windows 10系统的字体资源,可用于安装或备份。同时,它也让我们关注到字体在不同操作系统间的兼容性问题,以及在日常使用中如何管理和选择合适的字体。
标题 "wps_symbol_fonts.zip" 暗示了这是一个针对WPS Office软件的补丁或资源包,专门解决在Linux操作系统环境下WPS缺少特定字体的问题。这个压缩包包含的字体文件,可能是为了确保WPS在Linux系统中能够正确显示某些...
10. **example**:示例代码目录,提供了一个简单的Flutter项目,演示了如何在实际应用中使用google_fonts插件,是学习和理解插件功能的好资源。 总的来说,`flutter google_fonts 2.31版本`提供了在Flutter应用中...
支持Windows 10 x64 2004/20H2的日文字体语功能包 安装方法dism /online /Add-Package /PackagePath:D:\Win10x64-20H2-LanguageFeatures-Fonts-Jpan-Package.cab
bitmap-fonts-0.3-6.fc10.noarch.rpm
【标题】"wp-uyghur-fonts"指的是一个与乌兹别克语(Uyghur)相关的WordPress字体资源包。这个包可能是为了改善乌兹别克语网站的显示效果,提供更美观、易读的字体选择。乌兹别克语主要使用以拉丁字母为基础的...
标题中的“搜狗拼音forUbuntu去fonts-droid.rar”表明这是一个专为Ubuntu操作系统优化的搜狗拼音输入法版本,去除了对fonts-droid字体库的依赖。在Ubuntu系统中,安装软件时通常需要满足所有依赖关系,如果缺少某个...
标题"字库 Fonts.zip"表明这是一个包含多种字体的压缩文件,格式为.zip。.zip是一种常见的文件压缩格式,用于将多个文件或文件夹打包成一个单一的压缩文件,以便于存储和传输。解压Fonts.zip后,用户可以获得其中的...