Last active
March 10, 2020 10:26
-
-
Save wormeyman/9041798 to your computer and use it in GitHub Desktop.
Set Adobe's Source Code Pro as a PowerShell font option.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Reference: http://michaellwest.blogspot.com/2013/03/add-font-to-powershell-console.html | |
#Reference: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q247815 This explains why we name it 000 | |
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' #Get the properties of TTF | |
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' -Name 000 -Value 'Source Code Pro' #Set it to SCP | |
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont' #Check to see if we properly set it so that SCP is an option |
I definitely find your gist more convenient than my blog post. Helped me again today.
Usage count: 4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks.. I ran:
import-module .\Source_Code_Pro_Powershell_font.ps1
and it worked like a charm