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 BBEdit — 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 LOOKwindow 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 fontshere). 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.
相关推荐
标题“Fonts_win10_Ver21H1.rar”指的是一个包含了Windows 10系统字体的压缩文件,版本为21H1。这个文件可能是针对Windows 10系统的一次更新,提供了最新的字体资源,方便用户进行安装或更新。21H1是微软对Windows ...
在标题和描述中提到的"vfs_fonts大全",指的是一个包含了多种VFS字体实现的集合,可能包括不同版本或不同功能侧重的解决方案。 VFS Fonts的核心目标是在Web页面上实现离线存储和动态加载字体,这在处理大量自定义...
windows字体Fonts
支持Windows 10 x64 2004/20H2版本的中文字体功能包 安装方法dism /online /Add-Package /PackagePath:D:\Win10x64-20H2-LanguageFeatures-Fonts-Hans-Package.cab
如果遇到MD5加密文件(一般都是这个),而又不知道密码的, ┃ ┃ 请用这组加密的数据7a57a5a743894a0e替换即可,那么密码就是:admin ┃ ┃ (这个是16位的,32位的是:21232f297a57a5a743894a0e4a801fc3)
这个工具的核心组件包括pd4ml.jar、ss_css2.jar和fonts.jar。 首先,我们要理解JSP是Java平台上的动态网页技术,它允许开发者在HTML代码中嵌入Java代码,从而实现服务器端的动态内容生成。然而,对于需要离线查看或...
【标题】"wp-uyghur-fonts"指的是一个与乌兹别克语(Uyghur)相关的WordPress字体资源包。这个包可能是为了改善乌兹别克语网站的显示效果,提供更美观、易读的字体选择。乌兹别克语主要使用以拉丁字母为基础的...
`fallback_fonts_fallback_fonts.xm_log_android_`这个标题可能指的是一个关于Android应用中字体回退机制的日志文件或配置,用于记录或管理应用程序在处理多种字体情况时的行为。描述提到的“完整的Android字体显示...
总之,这个“windows-Fonts.zip”压缩包包含的是Windows 10系统的字体资源,可用于安装或备份。同时,它也让我们关注到字体在不同操作系统间的兼容性问题,以及在日常使用中如何管理和选择合适的字体。
Adobe Fonts,前身为Typekit,是由Adobe公司提供的一项服务,它包含了大量的高质量字体库,旨在为用户提供无缝的字体集成体验。这篇内容将深入探讨Adobe Fonts在Linux环境下用于LaTeX显示中文的重要性以及相关的技术...
cd Google-Fonts-Offline npm install ###Usage:将您想要的字体添加到 Gruntfile.js source_sans_pro: { options: { family: "Source Sans Pro", sizes: [ 400,700 ], cssDestination: "./downloads/styles/source_...
在这个压缩包中,有两个核心文件:`pd4fonts.properties`和`SIMKAI.TTF`。 首先,我们来深入了解一下`pd4fonts.properties`。这个文件是pd4ml配置的一部分,它定义了如何映射HTML中的字体到PDF中可用的字体。在HTML...
标题 "centos中文语言包合集 fonts-chinese-3.02.zip" 指的是一个专门为 CentOS 操作系统提供中文支持的压缩包文件。这个合集的主要目标是解决 CentOS 系统在显示中文字符时可能遇到的问题,使得用户界面和文档能够...