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 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.

Contents

[edit] Usage in programming

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.

[edit] Sample

The following is a sample C++/CLI program using the standard programming font, Courier New:
Image:Courier New programming.png

However, the same sample using an aliased Consolas is not aligned well:
Image:Consolas programming 1.png

Once font smoothing is activated, all the characters appear aligned:
Image:Consolas-programming-2.png

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):
Image:Consolas-cleartype.png

[edit] External links

[edit] Notes

In other languages