27
12
I have been using Cleartype and Vista fonts on Windows XP for quite a while now. I love the Consolas font for working with source code. I would love to have it as the font of my Windows console (command) window too. Is there a way to do this?
27
12
I have been using Cleartype and Vista fonts on Windows XP for quite a while now. I love the Consolas font for working with source code. I would love to have it as the font of my Windows console (command) window too. Is there a way to do this?
34
Create a backup of the windows registry.
On regedit, navigate to
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont
Right click on the right pane, select New
-> String value
.
Write 00
as the entry name.
Right click on the new entry, click on Modify
.
Write the name of the desired font on the Value
data field. That value should match one of the entries on HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts
If you want to add additional fonts, repeat the previous steps, adding a 0
to the entry name each time (that is, the third entry should be 000
and so on).
Reboot your PC to apply the changes.
Open a console window, right click on the title bar, select Properties
.
Select the Font
tab. The new fonts should appear on the list.
Before doing any of this, please read the article "Why are console windows limited to Lucida Console and raster fonts?", which explains in great detail why you shouldn't do that anyway.
5
This is a simple registry tweak.
HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont
Add a string value (REG_SZ) with the name 00 and put Consolas in the 'data' field.
You will then need to reboot your PC, and change the default within command prompt.
Start -> Run -> Cmd.
Right click the title of the window -> Properties -> Fonts.
2
Well ... you can always try something like this to replace your old cmd
: http://sourceforge.net/projects/console/
2
See also How to set the command prompt font on XP? on Server Fault.
1
Use ConEmu. It is way superior to the "DOS box". It's better than Console too.
(1) The link in Ant's comment is broken. (2) On my Windows 7 system, I already have a
00
=Consolas
value (I don't remember putting it there). (Yes, I know, the question is about Windows XP.) (3) This answer seems to be suggesting using000
,0000
,00000
, ..., if you're adding many entries. While you probably shouldn't be adding a *lot* of fonts, a naming scheme of000
,001
,002
would seem to be more extensible/sustainable. – G-Man Says 'Reinstate Monica' – 2015-08-14T00:29:51.3436
There's this Microsoft support article which adds a bit more detail about limitations too: http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3BQ247815
– Ant – 2009-07-16T08:51:36.470+1 for the link to that blog! A must-read indeed. – Arjan – 2009-07-16T11:25:45.227
It is terrible that this works. – Limited Atonement – 2012-04-25T14:57:39.297
Note that code page in Command Prompt limited the choice of font. Find active code page first by
chcp
. Then try using UTF-8 code page (PERMANENT change!)chcp 65001
to reveal the font in the list. – Ivan Chau – 2014-02-09T09:15:08.270