Skip to content

Instantly share code, notes, and snippets.

@wormeyman
Last active March 10, 2020 10:26
Show Gist options
  • Save wormeyman/9041798 to your computer and use it in GitHub Desktop.
Save wormeyman/9041798 to your computer and use it in GitHub Desktop.
Set Adobe's Source Code Pro as a PowerShell font option.
#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
@michaellwest
Copy link

michaellwest commented Jul 6, 2017

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