{"id":79,"date":"2008-06-19T11:04:46","date_gmt":"2008-06-19T15:04:46","guid":{"rendered":"http:\/\/nuxx.net\/blog\/?p=79"},"modified":"2008-06-19T15:06:36","modified_gmt":"2008-06-19T19:06:36","slug":"how-to-use-consolas-with-cmdexe","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2008\/06\/19\/how-to-use-consolas-with-cmdexe\/","title":{"rendered":"How To Use Consolas with cmd.exe"},"content":{"rendered":"<p><center><\/p>\n<table cellpadding=1>\n<tr>\n<td bgcolor=\"black\"><img decoding=\"async\" src=\"https:\/\/nuxx.net\/gallery\/d\/74991-1\/consolas_2.png\" height=380 width=587 border=0 alt=\"Consolas in cmd.exe.\"><\/td>\n<\/tr>\n<\/table>\n<p><\/center><\/p>\n<p>Back in January I <a href=\"http:\/\/c0nsumer.livejournal.com\/1113062.html\">mentioned that I have switched<\/a> to <a href=\"http:\/\/en.wikipedia.org\/wiki\/Consolas\">Consolas<\/a> as my preferred monospaced font for on-screen work. As part of this I switched <a href=\"http:\/\/en.wikipedia.org\/wiki\/Windows_command_line\">cmd.exe<\/a> to using it as well, but doing so was not a trivial matter. If you wish to do so, here&#8217;s how in a couple of nice, easy steps:<\/p>\n<blockquote><p>1) Get a copy of Consolas. You can either get it <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&#038;displaylang=en\">here direct from Microsoft<\/a>, or I also have a copy of just the <tt>.ttf<\/tt> files <a href=\"https:\/\/nuxx.net\/files\/consolas.zip\">here<\/a>.<br \/>\n2) Add the fonts to the machine by dragging and dropping them into <tt>%WINDIR%\\Fonts<\/tt> (eg: <tt>c:\\windows\\fonts<\/tt>) or add them using the Fonts applet in Control Panel.<br \/>\n3) Add a string value called <tt>00<\/tt> with a value of <tt>Consolas<\/tt> to <tt>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Console\\TrueTypeFont<\/tt>. Importing <a href=\"https:\/\/nuxx.net\/files\/make_consolas_work.reg\">this .reg file<\/a> will do this for you.<br \/>\n4) Start up <tt>cmd.exe<\/tt> and you&#8217;ll now <a href=\"https:\/\/nuxx.net\/gallery\/v\/computers\/screenshots\/consolas_1.png.html?g2_imageViewsIndex=1\">be able to change the font to Consolas<\/a>. I suggest saving the changed properties for future use.<br \/>\n5) 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.<br \/>\n6) Fire up <tt>cmd.exe<\/tt> and you&#8217;ll see that the font being used is now Consolas, as shown above.\n<\/p><\/blockquote>\n<p>Note that the <a href=\"https:\/\/nuxx.net\/gallery\/v\/computers\/screenshots\/consolas_2.png.html\">window shown above<\/a> has the font size set to 14 point. For what it&#8217;s worth, I run the console on my laptop (with a 1400&#215;1050 display) at 14 point, with a window width of 150 characters and height of 70 characters, as can be seen <a href=\"https:\/\/nuxx.net\/gallery\/v\/computers\/screenshots\/consolas_3.png.html?g2_imageViewsIndex=2\">here<\/a>.<\/p>\n<p>I also use Consolas in <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">PuTTY<\/a> running <a href=\"https:\/\/nuxx.net\/gallery\/v\/computers\/screenshots\/consolas_4.png.html?g2_imageViewsIndex=2\">at 11 point, 80 columns and 50 rows<\/a> and in <a href=\"http:\/\/notepad-plus.sourceforge.net\">Notepad++<\/a>, also <a href=\"https:\/\/nuxx.net\/gallery\/v\/computers\/screenshots\/consolas_5.png.html?g2_imageViewsIndex=2\">at 11 point<\/a>.<\/p>\n<p>One last thing to remember is that this font was designed to be used with <a href=\"http:\/\/en.wikipedia.org\/wiki\/ClearType\">ClearType<\/a>, Microsoft&#8217;s implementation of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Subpixel_rendering\">subpixel rendering<\/a>. Without this it&#8217;ll look like poop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/nuxx.net\/blog\/2008\/06\/19\/how-to-use-consolas-with-cmdexe\/\">Continue reading<span class=\"screen-reader-text\">How To Use Consolas with cmd.exe<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-computers","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":0,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}