Jump to content

cmd.exe defualt font


Recommended Posts


i'm not sure... as a clue i can tell you that if you go to programs>accessories>command prompt you can rightclick it and check the properties where you can set the font. i think this will lead you to have a different font when opening that shortcut but i'm not sure how can you change it by running cmd.exe directly...

ps: from my particular collection of regtweaks i have 1 that let you change the command prompt font color...

Link to comment
Share on other sites

Yeah. I tried that but it the settings will take effect if I run cmd from the shortcut. But not if I run cmd from the run command. The settings when right-clicking the shortcut doesn't create a new registry entry in the HKCU\Softwares\Microsoft\Command Processor, and in the HKLM\Softwares\Microsoft\Command Processor. I tried adding a new DWORD entry "DefaultFont" but it didn't work. Maybe the settings for the default font is in a different location. :(

Link to comment
Share on other sites

To change by cmd line or script:

REM --- Modify Current User Console ---
REG ADD HKCU\Console /v ScreenBufferSize /t REG_DWORD /d 0x12c0078 /f
REG ADD HKCU\Console /v ScreenColors /t REG_DWORD /d 0x0f /f
REG ADD HKCU\Console /v FaceName /d "Lucida Console" /f
REG ADD HKCU\Console /v FontSize /t REG_DWORD /d 0x000c0000 /f
REG ADD HKCU\Console /v FontWeight /t REG_DWORD /d 0x00000190 /f
REG ADD HKCU\Console /v FontFamily /t REG_DWORD /d 0x36 /f

...modify as a .reg file it would go something like this:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console]
"FaceName"="Lucida Console"
"FontFamily"=dword:00000036

Edit your default cmd shell properties then run below to get a look at your settings...

REG QUERY HKCU\Console /s

Change key path to HKU\.DEFAULT\Console if you want it globally for new profiles etc.

HTH...

Link to comment
Share on other sites

How big you want it?

12 = 0x000c0000

14 = 0x000e0000

16 = 0x00100000

FYI:

CursorSize REG_DWORD 0x19

FaceName REG_SZ Lucida Console <--My preference

FontFamily REG_DWORD 0x36 <--this varies with font type, you need to set it or 1st time you open cmd.exe it will complain

FontSize REG_DWORD 0xc0000 <---12

FontWeight REG_DWORD 0x190

FullScreen REG_DWORD 0x0

HistoryBufferSize REG_DWORD 0x32

InsertMode REG_DWORD 0x1 <--enabled

LoadConIme REG_DWORD 0x1

NumberOfHistoryBuffers REG_DWORD 0x4

PopupColors REG_DWORD 0xf5

QuickEdit REG_DWORD 0x1 <--enabled

ScreenBufferSize REG_DWORD 0x12c0064 <---300 x 100

ScreenColors REG_DWORD 0xe <---br.yellow on black

WindowSize REG_DWORD 0x190050

CurrentPage REG_DWORD 0x1

HistoryNoDup REG_DWORD 0x0

Link to comment
Share on other sites

Thanks. Just figured out a new solution. :thumbup

If I right click the Command Prompt shortcut on the start menu and change the settings there, it doesn't change anything on the registry. But, if I click the icon on the cmd window and change the settings there, the registry entries change too.

d80bc_Edit_2004-12-01_3.JPG

Thanks for giving me a hint. :thumbup

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...