Consolas

From Wikipedia, the free encyclopedia

Consolas
Typeface Consolas
Category Monospace
Designer(s) Lucas de Groot
Foundry Microsoft
Sample
Consolas sample text

Consolas is a monospaced (non-proportional) typeface, designed by Lucas de Groot. It is a part of a new suite of fonts that take advantage of Microsoft's ClearType font hinting technology. It comes with Microsoft's Windows Vista and Microsoft Office 2007, and is available for download from Microsoft. Among the Windows Vista fonts, Consolas is most similar to the other monospaced fonts, Lucida Console and Courier New. It is the only standard Vista font with a slash through the zero character.

Contents

[edit] Characteristics

Consolas is a departure in the realm of Windows programming fonts because it is designed to work with a specific form of font antialiasing, specifically Microsoft's ClearType technology. The font hinting is correspondingly ClearType-specific, and as a result the font is highly aliased when used with ClearType switched off.[1]

Consolas supports the following OpenType layout features: stylistic alternates, localized forms, uppercase-sensitive forms, oldstyle figures, lining figures, arbitrary fractions, superscript, subscript.

Although Consolas is designed as a replacement for Courier New, it only has 713 glyphs, as compared to Courier New (2.90)'s 1318 glyphs.

[edit] Usage in programming

Traditionally, Windows programmers have used Courier New or a similar fixed-width font to do their programming. 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 to the programmer.

[edit] Sample

Note that the images below will look different depending on if you have a CRT monitor or a LCD display. LCD displays can also produce different visuals depending on their subpixel-layout.


The following is a sample C++/CLI program using Consolas, with ClearType enabled.

Image:Consolas-cleartype.png


For comparison, the same program using the traditional Windows programming font, Courier New.

Image:Courier New programming.png

As noted above; unlike Courier New, Consolas is not designed to be used with simple rasterization only and no antialiasing. If used as such, the result is highly aliased at many sizes.

Image:Consolas programming 1.png

However, even on systems that do not support ClearType (such as those running older versions of Windows), using simple grayscale antialiasing alleviates this.

Image:Consolas-programming-2.png

[edit] External links

[edit] Notes

  1. ^ Consolas and ClearType, Jeff Atwood