diff --git a/SourceCodePro/SourceCodePro.nuspec b/SourceCodePro/SourceCodePro.nuspec new file mode 100644 index 0000000..9628aa0 --- /dev/null +++ b/SourceCodePro/SourceCodePro.nuspec @@ -0,0 +1,22 @@ + + + + SourceCodePro + Source Code Pro Programming Font + 1.010 + Adobe Systems Incorporated + Ethan Brown + Monospaced OpenType programming font + Source Code Pro is a set of OpenType fonts that have been designed to work well in user interface (UI) environments. In addition to a functional OpenType font, this open source project provides all of the source files that were used to build this OpenType font by using the AFDKO makeotf tool. + + https://github.com/adobe/Source-Code-Pro + monospace opentype programming font + https://github.com/adobe/Source-Code-Pro/blob/master/LICENSE.txt + false + http://blogs.adobe.com/typblography/files/2012/09/SourceCodeSplash.png + + + + + + diff --git a/SourceCodePro/tools/chocolateyInstall.ps1 b/SourceCodePro/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..e89eeab --- /dev/null +++ b/SourceCodePro/tools/chocolateyInstall.ps1 @@ -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 +}