MesloLG Monospaced Font 1.00 with dotted zeros
This commit is contained in:
24
MesloLG/tools/chocolateyInstall.ps1
Normal file
24
MesloLG/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
$package = 'MesloLG.DZ'
|
||||
|
||||
try {
|
||||
# no dot
|
||||
# $fontUrl = 'https://github.com/downloads/andreberg/Meslo-Font/Meslo%20LG%20v1.0.zip'
|
||||
# dotted zero
|
||||
$fontUrl = 'https://github.com/downloads/andreberg/Meslo-Font/Meslo%20LG%20DZ%20v1.0.zip'
|
||||
$destination = Join-Path $Env:Temp 'MesloFont'
|
||||
|
||||
Install-ChocolateyZipPackage -url $fontUrl -unzipLocation $destination
|
||||
|
||||
$shell = New-Object -ComObject Shell.Application
|
||||
$fontsFolder = $shell.Namespace(0x14)
|
||||
|
||||
Get-ChildItem $destination -Recurse -Filter *.ttf |
|
||||
% { $fontsFolder.CopyHere($_.FullName) }
|
||||
|
||||
Remove-Item $destination -Recurse
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user