From 3f11bead74a2471ad801ed17a24c7b9ff3a52010 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 20 Jun 2023 14:26:34 +0300 Subject: vcascadia-gen: fix name, use otf instead of ttf --- vcascadia-gen.sh | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/vcascadia-gen.sh b/vcascadia-gen.sh index 5cb988c..a59bc37 100755 --- a/vcascadia-gen.sh +++ b/vcascadia-gen.sh @@ -2,26 +2,24 @@ ### # https://github.com/microsoft/cascadia-code # ss01 - handwritten italic -# ss02 - lua not equal ~= - does not work :( +# ss02 - lua not equals ~= # ss03 - serbian locale # ss19 - slashed zero 0 # ss20 - graphical control characters ### +# opentype-feature-freezer is necessary, install with pipx or pip +# pip install --upgrade opentype-feature-freezer +### -arch=vcascadia.tgz - -nsrc=CascadiaCodePL.ttf -ndst=normal.ttf -nss=ss19,ss20 - -isrc=CascadiaCodePLItalic.ttf -idst=italic.ttf -iss=ss01,$nss +name=VascadiaMod +arch=$name.tgz +ss=ss01,ss19,ss20 -rm -fv $arch $ndst $idst +for font in CascadiaCodePL*.otf; do + src=$font + dst=${font/CascadiaCodePL/$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 + pyftfeatfreeze -f $ss -R "Cascadia Code PL/$name" $src $dst +done -tar -acvf $arch $ndst $idst +eval tar -acvf $arch $name* -- cgit v1.2.3