diff options
author | Von Random <von@vdrandom.org> | 2023-06-20 14:26:34 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2023-06-20 14:26:34 +0300 |
commit | 3f11bead74a2471ad801ed17a24c7b9ff3a52010 (patch) | |
tree | 0194222663a39d32609c622fe2e47a5dcd9d5a61 | |
parent | 18c36c734085e79a5000cf9bce066820f89aa60b (diff) |
vcascadia-gen: fix name, use otf instead of ttf
-rwxr-xr-x | vcascadia-gen.sh | 28 |
1 files 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* |