Change the Font of Command Prompt Window to Consolas For More Comfortable Reading

command prompt font

*This screenshot compares text rendered using Consolas vs Lucida Console font.

Microsoft introduced the Consolas ClearType font to improve your on-screen reading experience especially when reading or writing programming code. Consolas, like Courier, is a fixed-width font meaning that all letters are the same width.

consolas-screenshot How to get Consolas Font on your computer ?

The Consolas font is available by default on all computers that have Windows Vista or Office 2007. If you are on Windows XP / 2000 or do not have Office 2007, you may download PowerPoint viewer and the font will automatically install on your computer – legally. (See: "Download Vista Fonts for XP Computers")

If you own a license of Visual Studio, download the Consolas Font Pack here.

How to set Consolas as the default font in Command Prompt Window ?

command-prompt-fontsWhen you open the Properties dialog of your Command Window, the only fonts you may see in the list are Lucida Console and Raster Fonts.

In order to set Consolas as the default font, you need to first add the following font-specific entry to your Windows registry.

Go to HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont, add a string value (REG_SZ) with the name 00 and put Consolas in the data field. See screenshot.

fonts

*if you already have two fonts set in the DOS windows, set the name of Consolas as 000 (three 0’s).

Now reboot your Windows computer, open the command prompt window and set the default font to Consolas. Thanks Jeff Lynch.

Change Color Scheme of DOS Window

Find this article at: http://www.labnol.org/software/tutorials/change-font-dos-command-prompt-window-consolas-programming-font/3253/

Tags: , , , , Software, Tips, Tricks, Tutorials

Reader Comments

I’m on XP with Office 2007 and have Consolas. I don’t have a Console folder in like Vista does, apparently. Is it different for XP, or do I need to create it? Thanks for assuming we all use Vista.

This is a great hint. For those who are like me (lazy), you may want to do the following…

1) Copy the below text into a text editor:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont]
“00″=”Consolas”

2) Save the file with a ‘.reg’ extension – something like “Add_consolas_to_terminal.reg”.

3) Once you’ve saved it, right-click on it and select ‘Merge’ (it was the top-most item for me). That does it!

Nice tip. I rarely use console but couldn’t resist trying the tip.

@ Greg:

What is the character supposed to be where I’ve placed a question mark: “00?=”Consolas”

@Maggie:

The blog uses curly quotes. You should replace these with regular double quotes.

@Mark:

Oops, combined your names to get “Maggie”. My bad.

:/

I prefer inconsolata. It’s free and works well with linux and the terminals are drop dead gorgeous



Google Custom Search