Press "Enter" to skip to content

How To Use Consolas with cmd.exe

Consolas in cmd.exe.

Back in January I mentioned that I have switched to Consolas as my preferred monospaced font for on-screen work. As part of this I switched cmd.exe to using it as well, but doing so was not a trivial matter. If you wish to do so, here’s how in a couple of nice, easy steps:

1) Get a copy of Consolas. You can either get it here direct from Microsoft, or I also have a copy of just the .ttf files here.
2) Add the fonts to the machine by dragging and dropping them into %WINDIR%\Fonts (eg: c:\windows\fonts) or add them using the Fonts applet in Control Panel.
3) Add a string value called 00 with a value of Consolas to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont. Importing this .reg file will do this for you.
4) Start up cmd.exe and you’ll now be able to change the font to Consolas. I suggest saving the changed properties for future use.
5) Note that despite changing the selected font at this time, it does not actually change in the window. You must now reboot the computer (not just log out, but actually reboot) and then log back in.
6) Fire up cmd.exe and you’ll see that the font being used is now Consolas, as shown above.

Note that the window shown above has the font size set to 14 point. For what it’s worth, I run the console on my laptop (with a 1400×1050 display) at 14 point, with a window width of 150 characters and height of 70 characters, as can be seen here.

I also use Consolas in PuTTY running at 11 point, 80 columns and 50 rows and in Notepad++, also at 11 point.

One last thing to remember is that this font was designed to be used with ClearType, Microsoft’s implementation of subpixel rendering. Without this it’ll look like poop.

One Comment

  1. frkeller
    frkeller April 17, 2010

    Thank you for pulling together all the pieces to get consolas into cmd.exe and, in my case, ksh.exe and powershell. F.Ron.Keller, Jackson NJ

Leave a Reply