summaryrefslogtreecommitdiff
path: root/vcascadia-gen.sh
blob: 5cb988c77bec5426d2b277b356729f169fb6f963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env zsh
###
# https://github.com/microsoft/cascadia-code
# ss01 - handwritten italic
# ss02 - lua not equal ~= - does not work :(
# ss03 - serbian locale
# ss19 - slashed zero 0
# ss20 - graphical control characters
###

arch=vcascadia.tgz

nsrc=CascadiaCodePL.ttf
ndst=normal.ttf
nss=ss19,ss20

isrc=CascadiaCodePLItalic.ttf
idst=italic.ttf
iss=ss01,$nss

rm -fv $arch $ndst $idst

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