wezm.net/content/technical/2009/06/programming-fonts-recap.html
2010-03-12 07:30:27 +11:00

22 lines
3.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Dan Benjamin did a <a href="http://hivelogic.com/articles/view/top-10-programming-fonts/">review of programming fonts</a> and identified <a href="http://www.levien.com/type/myfonts/inconsolata.html">Inconsolata</a> as his favourite of the ten he presented. I tried out Inconsolata after this recommendation but have gone back to Consolas. There were a few things that I didn't like about Inconsolata: It feels a bit round, it has a weird lowercase t that ends up looking bold when the other text isnt, the 'i' looks a bit thin and using left curly quotes all the time looks a bit strange. I also thought the tilde wasnt defined enough, particularly in a prompt. Being freely available and not having to jump through hoops is certainly a plus though.
A few weeks later Dan posted a <a href="http://hivelogic.com/articles/view/anonymous-pro-programming-monospace-font/">follow up post about Anonymous Pro</a>. I personally can't see what the attraction to that one is. The larger type looks with a mix of upper and lowercase letter appears like two different fonts and ends up looking a total mess to me.
Around the same time as Dan's second post news broke that <a href="http://arstechnica.com/apple/news/2009/06/font-changes-coming-to-mac-os-x-snow-leopard.ars">Snow Leopard will ship with a new monospaced font</a> called Menlo that will replace the use of Monaco as the default font in applications like Terminal and Xcode. Menlo is derived from DejaVu Sans Mono which is in turn derived from Bitstream Vera Sans Mono. Jon Shea from ExpanDrive posted a <a href="http://blog.expandrive.com/2009/06/15/menlo-vera-sans-mono-comparison/">comparison of Menlo to Bitstream Vera Sans Mono</a> that shows the changes that Apple have made. From this comparison they all look quite sensible. The Vera family has been licensed in a <abbr title="Free and Open Source Software">FOSS</abbr> friendly manner and is included as a system font in many Linux distributions. I've also tried Vera Mono for programming in the past but again I still like the feel of Consolas more.
Below is a screen shot of each font (<del datetime="2009-07-22T11:06:40+00:00">except Menlo, which isn't widely available yet</del> Menlo screen shot supplied by <a href="http://wezm.net/2009/06/programming-fonts-recap/#comment-3709">eric s</a>) in <a href="http://macromates.com/">TextMate</a> using my preferred theme, <a href="http://github.com/ryanb/textmate-themes/tree/master">Railscasts</a>. Note that my baseline was Consolas 13pt and I adjusted the others to approximately the same size. The code snippet used is the same as Dan used in his Anonymous Pro post.
<!--more-->
<h4>Consolas</h4>
<img src="http://www.wezm.net/wp-content/uploads/wezm.net/2009/06/Consolas.png" alt="Screenshot of Consolas in TextMate" title="Screenshot of Consolas in TextMate" width="470" height="327" class="size-full wp-image-164" />
<h4>Inconsolata</h4>
<img src="http://www.wezm.net/wp-content/uploads/wezm.net/2009/06/Incosolata.png" alt="Screenshot of Inconsolata in TextMate" title="Screenshot of Inconsolata in TextMate" width="460" height="309" class="size-full wp-image-165" />
<h4>Anonymous Pro</h4>
<img src="http://www.wezm.net/wp-content/uploads/wezm.net/2009/06/Anonymous-Pro.png" alt="Screenshot of Anonymous Pro in TextMate" title="Screenshot of Anonymous Pro in TextMate" width="502" height="290" class="size-full wp-image-162" />
<h4>Bitstream Vera Sans Mono</h4>
<img src="http://www.wezm.net/wp-content/uploads/wezm.net/2009/06/Bitstream-Vera.png" alt="Screenshot of Bitstream Vera Sans Mono in TextMate" title="Screenshot of Bitstream Vera Sans Mono in TextMate" width="476" height="289" class="size-full wp-image-163" />
<h4>Menlo</h4>
<img src="http://www.wezm.net/wp-content/uploads/wezm.net/2009/06/Menlo.jpg" alt="Screenshot of Menlo in TextMate" title="Screenshot of Menlo in TextMate" width="475" height="295" class="size-full wp-image-190" />