ARTICLES IN THE BOOK
A GUIDE TO WINDOWS VISTA
This article is from:
All text is available under the terms of the GNU Free Documentation License: http://en.wikipedia.org/wiki/Wikipedia:Text_of_the_GNU_Free_Documentation_License
Consolas is a monospaced font. It is a part of the new suite of fonts that take advantage of the new ClearType font hinting technology. It is bundled with Microsoft's Windows Vista and Microsoft Office 2007, and is available for download for users of Microsoft Visual Studio. Among the six Windows Vista fonts, Consolas is the most similar to Lucida Console or Courier New.
Consolas represents a departure for the realm of programming fonts because it is designed to work with a specific form of font antialiasing, specifically Microsoft's patented ClearType technology. Traditionally, programmers have used Courier New or a similar fixed-width font to do their programming, choosing to enable anti-aliasing based on their preference. Unlike other forms of displayed text (such as PDFs, Web pages and Word processor documents) computer code does not specify the font in which it should be displayed - the choice is left up to the individual programmer's preference.
Consolas, however, does not render well if ClearType or traditional antialiasing is not enabled. Most existing programming fonts do not degrade under traditional bi-level rendering.
The following is a sample C++/CLI program using the standard programming font, Courier New:
However, the same sample using an aliased Consolas is not aligned well:
Once font smoothing is activated, all the characters appear aligned:
Consolas was designed specifically for ClearType, so the maximum benefit will only come with enabling ClearType (Note: this image may appear blurry without an LCD monitor):
Categories: Monospace typefaces | Microsoft typefaces | Windows Vista typefaces