Beta 42

Research and Development

Menu

PowerShell - Adding More Fonts

Tired of using the boring default fonts in PowerShell? There are more monospaced fonts on your system. You just need to allow the console to use them.

Here’s how:

$key = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont'
Set-ItemProperty -Path $key -Name '0' -Value 'Lucida Console'
Set-ItemProperty -Path $key -Name '00' -Value 'Courier New'
Set-ItemProperty -Path $key -Name '000' -Value 'Consolas'
Set-ItemProperty -Path $key -Name '0000' -Value 'Lucida Sans Typewriter'
Set-ItemProperty -Path $key -Name '00000' -Value 'OCR A Extended'

Run this with Administrator privileges to add additional fonts to the console. Every new console you open now (including cmd.exe) can now select from these fonts. To select a font, right-click the icon in the console title bar and choose Properties, then click on the Font tab.