How do I change the font for PowerShell?
There are only a few kind of fonts in PowerShell Preference.
Is there a way to choose more fonts?
When you launch Powershell.exe, client server runtime sub-system(csrss.exe) spawns a child process called conhost.exe.
You can try this the harder way to deal with the font:
Set-Location HKCU:\Console
New-Item '.\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe'
Set-Location '.\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe'
New-ItemProperty . FaceName -type STRING -value "Lucida Console"
New-ItemProperty . FontFamily -type DWORD -value 0x00000036
New-ItemProperty . FontSize -type DWORD -value 0x000c0000
New-ItemProperty . FontWeight -type DWORD -value 0x00000190
Apart from that, there is a SetConsoleFont module available for PowerShell.
The cmdlet for setting it is:
Set-ConsoleFont 10
You can check 4SysOps for reference.
A few exports are there under kernel32.dll that can change the font also.
To change the font in PowerShell:
conhost.exe
), not the PowerShell host process. Maybe related.