Friday, April 13, 2007

Consolas Font Pack for VS 2005 and Orcas

One of the reasons for adopting the new template for the OakLeaf Systems blog was gaining more horizontal space for code samples. Here's what Microsoft says about Consolas and its downloadable installer:

Consolas is intended for use in programming environments and other circumstances where a monospaced font is specified. All characters have the same width, like old typewriters, making it a good choice for personal and business correspondence. Optimizing the font specifically for ClearType allowed a design with proportions closer to normal text than traditional monospaced fonts like Courier. This allows for more comfortable reading of extended text on-screen.

The package will change the default text face in Visual Studio to the Consolas family.

This package is only intended for licensed users of Microsoft Visual Studio 2005.

Another plus is that Consolas has a narrower pitch than Courier New/Courier, similar to the difference between the traditional Elite and Courier typewriter fonts, but Consolas is more readable than Courier New in a smaller height and width. Here's a bit-map example of code from

I've modified the CSS for the code samples in the blog to use Consolas as the default. Windows Vista, Windows 2003 Server R2, and most Longhorn builds install the Consolas font family. Strangely, Orcas doesn't install it.

If you don't have it installed, you'll see line wrapping in some examples because of the greater width of Courier New characters.

Technorati tags: , ,

0 comments: