`
love~ruby+rails
  • 浏览: 849459 次
  • 性别: Icon_minigender_1
  • 来自: lanzhou
社区版块
存档分类
最新评论

Top 10 Programming Fonts

阅读更多

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.

Courier NewFigure 1 Courier New

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.

Andale MonoFigure 2 Andale Mono

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.

MonacoFigure 3 Monaco
Monaco 9Figure 4 Monaco 9-point, without anti-aliasing

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.

ProfontFigure 5 Profont 9-point, without anti-aliasing

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.

MonofurFigure 6 Monofur

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.

Proggy CleanFigure 7 Proggy Clean at 15-point (yes, 15-point), 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.

Droid Sans MonoFigure 8 Droid Sans Mono

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.

Deja Vu Sans MonoFigure 9 Deja Vu Sans Mono

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.

ConsolasFigure 10 Consolas

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 .

InconsolataFigure 11 Inconsolata

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.

分享到:
评论

相关推荐

    Fonts_win10_Ver21H1.rar

    标题“Fonts_win10_Ver21H1.rar”指的是一个包含了Windows 10系统字体的压缩文件,版本为21H1。这个文件可能是针对Windows 10系统的一次更新,提供了最新的字体资源,方便用户进行安装或更新。21H1是微软对Windows ...

    vfs_fonts大全

    在标题和描述中提到的"vfs_fonts大全",指的是一个包含了多种VFS字体实现的集合,可能包括不同版本或不同功能侧重的解决方案。 VFS Fonts的核心目标是在Web页面上实现离线存储和动态加载字体,这在处理大量自定义...

    Win10x64-20H2-LanguageFeatures-Fonts-Hans-Package.cab

    支持Windows 10 x64 2004/20H2版本的中文字体功能包 安装方法dism /online /Add-Package /PackagePath:D:\Win10x64-20H2-LanguageFeatures-Fonts-Hans-Package.cab

    FONTS-FONTS1

    如果遇到MD5加密文件(一般都是这个),而又不知道密码的, ┃ ┃ 请用这组加密的数据7a57a5a743894a0e替换即可,那么密码就是:admin ┃ ┃ (这个是16位的,32位的是:21232f297a57a5a743894a0e4a801fc3)

    fallback_fonts_fallback_fonts.xm_log_android_

    `fallback_fonts_fallback_fonts.xm_log_android_`这个标题可能指的是一个关于Android应用中字体回退机制的日志文件或配置,用于记录或管理应用程序在处理多种字体情况时的行为。描述提到的“完整的Android字体显示...

    windows-Fonts.zip

    总之,这个“windows-Fonts.zip”压缩包包含的是Windows 10系统的字体资源,可用于安装或备份。同时,它也让我们关注到字体在不同操作系统间的兼容性问题,以及在日常使用中如何管理和选择合适的字体。

    wps_symbol_fonts.zip

    标题 "wps_symbol_fonts.zip" 暗示了这是一个针对WPS Office软件的补丁或资源包,专门解决在Linux操作系统环境下WPS缺少特定字体的问题。这个压缩包包含的字体文件,可能是为了确保WPS在Linux系统中能够正确显示某些...

    flutter google_fonts 2.31版本

    10. **example**:示例代码目录,提供了一个简单的Flutter项目,演示了如何在实际应用中使用google_fonts插件,是学习和理解插件功能的好资源。 总的来说,`flutter google_fonts 2.31版本`提供了在Flutter应用中...

    Win10x64-20H2-LanguageFeatures-Fonts-Jpan-Package.cab

    支持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

    bitmap-fonts-0.3-6.fc10.noarch.rpm

    wp-uyghur-fonts

    【标题】"wp-uyghur-fonts"指的是一个与乌兹别克语(Uyghur)相关的WordPress字体资源包。这个包可能是为了改善乌兹别克语网站的显示效果,提供更美观、易读的字体选择。乌兹别克语主要使用以拉丁字母为基础的...

    搜狗拼音forUbuntu去fonts-droid.rar

    标题中的“搜狗拼音forUbuntu去fonts-droid.rar”表明这是一个专为Ubuntu操作系统优化的搜狗拼音输入法版本,去除了对fonts-droid字体库的依赖。在Ubuntu系统中,安装软件时通常需要满足所有依赖关系,如果缺少某个...

    字库 Fonts.zip

    标题"字库 Fonts.zip"表明这是一个包含多种字体的压缩文件,格式为.zip。.zip是一种常见的文件压缩格式,用于将多个文件或文件夹打包成一个单一的压缩文件,以便于存储和传输。解压Fonts.zip后,用户可以获得其中的...

Global site tag (gtag.js) - Google Analytics