Source Code Pro monospaced font 1.010

This commit is contained in:
Iristyle
2012-10-10 03:00:39 -04:00
parent 6bb3021c49
commit 39100764a6
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
try {
$package = 'SourceCodePro'
$fontUrl = 'https://github.com/downloads/adobe/Source-Code-Pro/SourceCodePro_FontsOnly-1.010.zip'
$destination = Join-Path $Env:Temp 'SourceCodePro'
Install-ChocolateyZipPackage -url $fontUrl -unzipLocation $destination
$shell = New-Object -ComObject Shell.Application
$fontsFolder = $shell.Namespace(0x14)
Get-ChildItem $destination -Recurse -Filter *.otf |
% { $fontsFolder.CopyHere($_.FullName) }
Remove-Item $destination -Recurse
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}