How can I install a new font in PowerShell console?
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:
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
Related videos on Youtube
jsalonen
Updated on September 18, 2022Comments
-
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 over 11 yearsSorry I think I mean setting font for PowerShell console.
-
jsalonen over 11 yearsYeah I know. That's why I'm using PowerShell.
-
Hogstrom over 5 yearsPlease include a snippet of the code / reference rather than just a blind link.
-
Luke about 5 yearsin my PC,
0
meanLucida Console
,00
meanConsolas
, I've tried to create000
forunifont-all
but it doesnt work. Do you have any clue about it? I've gotunifont-all
from here : math.berkeley.edu/~serganov/ilyaz.org/software/fonts