How can I install a new font in PowerShell console?

20,206

Solution 1

From This article:

Run regedit.exe and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont.

Right-click in the panel on the right side and create a new string value. Name that value “0″ or “00″ or however many zeros you need to create a new key. That string’s value is the name of the font to add.

Solution 2

Well PowerShell is a framework, so no you can't install a font to it.

I recommend you use the PowerShell ISE though. I think you'll like it:

powershell ise fonts dialog

Solution 3

Execute in PowerShell to set font for PowerShell.

Set-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Console" -Name "FaceName" -Value "Fira code" -Type String;

Fira code as example.

Solution 4

Here is a powershell script to add the information to the registry key: https://gist.github.com/nathanverrilli/d3f12fbad87953e28aae78b5f191cdab

Share:
20,206

Related videos on Youtube

jsalonen
Author by

jsalonen

Updated on September 18, 2022

Comments

  • jsalonen
    jsalonen over 1 year

    I want to customize the look of the PowerShell in Windows. When I install new fonts, they work just fine, but I can't find them in PowerShell font selection (only default fonts are there).

    Is there a way to install new fonts to PowerShell?

  • jsalonen
    jsalonen over 11 years
    Sorry I think I mean setting font for PowerShell console.
  • jsalonen
    jsalonen over 11 years
    Yeah I know. That's why I'm using PowerShell.
  • Hogstrom
    Hogstrom over 5 years
    Please include a snippet of the code / reference rather than just a blind link.
  • Luke
    Luke about 5 years
    in my PC, 0 mean Lucida Console, 00 mean Consolas, I've tried to create 000 for unifont-all but it doesnt work. Do you have any clue about it? I've got unifont-all from here : math.berkeley.edu/~serganov/ilyaz.org/software/fonts