2023-06-19 17:56:14 +03:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
###
|
|
|
|
# https://github.com/microsoft/cascadia-code
|
|
|
|
# ss01 - handwritten italic
|
2023-06-20 14:26:34 +03:00
|
|
|
# ss02 - lua not equals ~=
|
2023-06-19 17:56:14 +03:00
|
|
|
# ss03 - serbian locale
|
|
|
|
# ss19 - slashed zero 0
|
|
|
|
# ss20 - graphical control characters
|
|
|
|
###
|
2023-06-20 14:26:34 +03:00
|
|
|
# opentype-feature-freezer is necessary, install with pipx or pip
|
2024-12-10 18:56:31 +02:00
|
|
|
# pip install --upgrade opentype-feature-freezer
|
2023-06-20 14:26:34 +03:00
|
|
|
###
|
2023-06-19 17:56:14 +03:00
|
|
|
|
2023-06-20 14:26:34 +03:00
|
|
|
name=VascadiaMod
|
|
|
|
arch=$name.tgz
|
|
|
|
ss=ss01,ss19,ss20
|
2023-06-19 17:56:14 +03:00
|
|
|
|
2024-12-10 18:56:31 +02:00
|
|
|
for font in CascadiaMonoNF*.otf; do
|
2023-06-20 14:26:34 +03:00
|
|
|
src=$font
|
2024-12-10 18:56:31 +02:00
|
|
|
dst=${font/CascadiaMonoNF/$name}
|
2023-06-19 17:56:14 +03:00
|
|
|
|
2024-12-10 18:56:31 +02:00
|
|
|
pyftfeatfreeze -f $ss -R "Cascadia Code PL/$name" $src $dst
|
2023-06-20 14:26:34 +03:00
|
|
|
done
|
2023-06-19 17:56:14 +03:00
|
|
|
|
2023-06-20 14:26:34 +03:00
|
|
|
eval tar -acvf $arch $name*
|