added fonts folder stub

updated setup scripts to check for ttf/otf files instead of moving everything
This commit is contained in:
a. fox 2023-07-03 17:58:43 -04:00
parent bf3f909ade
commit 94146c193e
4 changed files with 5 additions and 4 deletions

0
fonts/.gitkeep Normal file
View File

View File

@ -20,5 +20,6 @@ cp hooks/* .git/hooks/
chmod +x .git/hooks/*
echo "Installing fonts..."
cp fonts/* $font_dir
cp fonts/*.ttf $font_dir/
cp fonts/*.otf $font_dir/
fc-cache -v

View File

@ -25,5 +25,6 @@ cp hooks/* .git/hooks/
chmod +x .git/hooks/*
echo "Installing fonts..."
cp fonts/* $font_dir
cp fonts/*.ttf $font_dir/
cp fonts/*.otf $font_dir/
fc-cache -v

View File

@ -21,7 +21,7 @@ New-Item -ItemType SymbolicLink -Path $env:appdata\.emacs -Target $PSScriptRoot\
echo "Installing fonts..."
$fonts = (New-Object -ComObject Shell.Application).Namespace(0x14)
foreach ($file in gci $PSScriptRoot\Fonts\*.otf)
foreach ($file in gci $PSScriptRoot\fonts\*.otf)
{
$fileName = $file.Name
if (-not(Test-Path -Path "C:\Windows\fonts\$fileName" )) {
@ -29,4 +29,3 @@ foreach ($file in gci $PSScriptRoot\Fonts\*.otf)
dir $file | %{ $fonts.CopyHere($_.fullname) }
}
}
cp *.otf c:\windows\fonts\