blob: 6c854225e5b098760f5daf704ca88490a7541cd5 (
plain) (
tree)
|
|
#!/bin/bash
. /usr/share/nvm/init-nvm.sh
make
mkdir -p fonts
uni=`find out -name '*.html' | xargs glyphhanger \
--cssSelector=':not(code, pre, kbd, samp)'`
pyftsubset /usr/share/fonts/WOFF2/Vollkorn-Regular.woff2 \
--output-file=fonts/vollkorn-regular.woff2 \
--flavor=woff2 \
--layout-features-=locl \
--layout-features+=lnum \
--unicodes="$uni" \
--no-hinting \
--desubroutinize
pyftsubset /usr/share/fonts/WOFF2/Vollkorn-Italic.woff2 \
--output-file=fonts/vollkorn-italic.woff2 \
--flavor=woff2 \
--layout-features-=locl \
--layout-features+=lnum \
--unicodes="$uni" \
--no-hinting \
--desubroutinize
uni=`find out -name '*.html' | xargs glyphhanger \
--cssSelector='code, pre, kbd, samp, :where(code, pre, kbd, samp) *'`
pyftsubset /usr/share/fonts/iosevka-smooth/woff2-unhinted/iosevka-smooth-regular.woff2 \
--output-file=fonts/iosevka-regular.woff2 \
--flavor=woff2 \
--layout-features-=locl \
--unicodes="$uni" \
--no-hinting \
--desubroutinize
pyftsubset /usr/share/fonts/iosevka-smooth/woff2-unhinted/iosevka-smooth-italic.woff2 \
--output-file=fonts/iosevka-italic.woff2 \
--flavor=woff2 \
--layout-features-=locl \
--unicodes="$uni" \
--no-hinting \
--desubroutinize
|