vcascadia-gen: fix name, use otf instead of ttf

This commit is contained in:
Von Random 2023-06-20 14:26:34 +03:00
parent 18c36c7340
commit 3f11bead74

View file

@ -2,26 +2,24 @@
### ###
# https://github.com/microsoft/cascadia-code # https://github.com/microsoft/cascadia-code
# ss01 - handwritten italic # ss01 - handwritten italic
# ss02 - lua not equal ~= - does not work :( # ss02 - lua not equals ~=
# ss03 - serbian locale # ss03 - serbian locale
# ss19 - slashed zero 0 # ss19 - slashed zero 0
# ss20 - graphical control characters # ss20 - graphical control characters
### ###
# opentype-feature-freezer is necessary, install with pipx or pip
# pip install --upgrade opentype-feature-freezer
###
arch=vcascadia.tgz name=VascadiaMod
arch=$name.tgz
ss=ss01,ss19,ss20
nsrc=CascadiaCodePL.ttf for font in CascadiaCodePL*.otf; do
ndst=normal.ttf src=$font
nss=ss19,ss20 dst=${font/CascadiaCodePL/$name}
isrc=CascadiaCodePLItalic.ttf pyftfeatfreeze -f $ss -R "Cascadia Code PL/$name" $src $dst
idst=italic.ttf done
iss=ss01,$nss
rm -fv $arch $ndst $idst eval tar -acvf $arch $name*
pip install --upgrade opentype-feature-freezer
pyftfeatfreeze -f $nss -R 'Cascadia Code PL/vcascadia' $nsrc $ndst
pyftfeatfreeze -f $iss -R 'Cascadia Code PL/vcascadia' $isrc $idst
tar -acvf $arch $ndst $idst