Last active
January 18, 2023 20:52
-
-
Save guywaldman/5df4e0cf1bdb72c8dac67e72df112cc9 to your computer and use it in GitHub Desktop.
Install font on Windows via PowerShell
This file contains hidden or 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
$FontsFolder = "$env:TEMP\Fonts" | |
New-Item -ItemType Directory -Path $FontsFolder -Force | |
Invoke-WebRequest https://github.com/JetBrains/JetBrainsMono/releases/download/v2.304/JetBrainsMono-2.304.zip -O $FontsFolderJBM.zip | |
Expand-Archive -Path $FontsFolder\JBM.zip -DestinationPath $FontsFolder/JBM | |
Get-ChildItem $FontsFolder\JBM\fonts\ttf\*.ttf | ForEach-Object { $fonts.CopyHere($_.fullname) } | |
Remove-Item -Path $FontsFolder -Recurse -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment