Scott Hanselman

Using Consolas as the Windows Console Font

June 12, '05 Comments [10] Posted in TechEd
Sponsored By

Consolasconsole

Simon Guest and I have been trying to figure out how to use our new favorite font, Consolas, as a font for the command console.

(I'm afraid I can't distribute Consolas online or provide a download out of abject fear. That said, you can find it in any version of the Longhorn bits.)

Seems you can get Consolas out of the Microsoft "Powerpoint Presentation Viewer" free of charge here, which, as a side effect, installs the new Vista fonts. Thanks to Tyler Cole for the tip.

You can add it to the list of fonts available to the console by adding it to

HKLM/Software/Microsoft/Windows NT/CurrentVersion/Console/TrueTypeFont

There is a KB article discribing how to add a font to the command prompt

In my case I added a REG_SZ with the name "00" and the value "Consolas." Then you have to REBOOT. Apparently the reboot is important otherwise you won't get the correct results and you'll see MS Sans Serif instead.

 Consolas

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. I am a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web
Sunday, June 12, 2005 2:40:57 PM UTC
Great tip, but my font in the cmd window is always in italic. How could I avoid this behaviour?
Sunday, June 12, 2005 3:38:41 PM UTC
Personally, I've been quite pleased with the results of using a proportional-spaced font (such as Tahoma) for code. Yes, it takes a little while to get used to, but once you do, code reads a bit more like text than just code.
Sunday, June 12, 2005 5:57:46 PM UTC
Giampaolo, I had this happen to me, so I moved the Consolas fonts OUT of the Fonts folder the moved them BACK in and it was fixed.
Scott Hanselman
Monday, June 13, 2005 2:17:43 PM UTC
how about a screenshot?
Tuesday, June 14, 2005 11:06:10 PM UTC
Great! Thank you Scott, it works now (how did you find this trick of moving out the ttf from the fonts folder?? :)
Screenshot here: http://www.bellavite.com/blog/File/consolasscreen.gif
Wednesday, June 15, 2005 12:10:03 AM UTC
okay, i'm digging into my longhorn bits and don't see the font -- what is the TTF file name?
tim
Wednesday, June 15, 2005 3:44:18 PM UTC
It would be helpful to see a screenshot including the following critical characters when choosing a fixed-width font for programming:

'"`
:;.,
{}()[]<>
0Oo
Ll1Ii|

I currently use Monaco as my default fixed-width font in as many places as possible, but I'm always open to suggestions.

see http://www.lowing.org/fonts/
Tuesday, June 21, 2005 10:13:41 PM UTC
I noticed in your registry some settings for international charaters. Do you know if Consolas or any other monospaced font will support a full unicode set?
Tuesday, June 21, 2005 10:18:53 PM UTC
I believe it depends on the font. According to CharMap.exe, Consolas goes up to U+FB02
Wednesday, July 06, 2005 7:05:38 PM UTC
I wonder how long it will be before someone from Argentina (Kzu?) will blog about what Consolas means in colloquial Argentinian? :)
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.