Sunday, August 26, 2007

Adding fonts to cmd.exe

Be default, the properties on a cmd.exe window allow you to select either Raster Fonts or Lucida Console. You can add other monospace fonts to the list via the registry.


In regedit, navigate to ( Start---> regedit.exe)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ Console\TrueTypeFont





Notice that Lucida Console is already under this key with a name of "0".

Add a new sting value with the name "00" (yep, that's the required name) and set the data to the name of a monospace font already installed in your C:\Windows\Fonts folder. In this example, I added the Consolas font. It seems that additional entries require names "000", "0000", etc. Names like "1" and "2" don't work. For Pete's sake, why?

Open up a new cmd window, right-click on the system menu, select Properties | Font and there is the newly added font.

I did this because I wanted a more readable font for my PowerShell window, since I've been spending some time staring at it

No comments: