diff options
| author | Volpeon <git@volpeon.ink> | 2021-05-10 16:41:05 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-05-10 16:41:05 +0200 |
| commit | a48d05d1d5fcff414359c8ba6cc8f38467aebdeb (patch) | |
| tree | 3542bf116c910a1bb42b40d8531f60c2c2498b08 /scripts/build_fonts.sh | |
| parent | Update (diff) | |
| download | volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.tar.gz volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.tar.bz2 volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.zip | |
Refactoring to fully take advantage of Make
Diffstat (limited to 'scripts/build_fonts.sh')
| -rwxr-xr-x | scripts/build_fonts.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/build_fonts.sh b/scripts/build_fonts.sh deleted file mode 100755 index 7d368e7..0000000 --- a/scripts/build_fonts.sh +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | source "site.defaults.conf" | ||
| 4 | |||
| 5 | find "${ASSETS_DIR}fonts" \ | ||
| 6 | -type f \ | ||
| 7 | -name "*.ttf" \ | ||
| 8 | | while read file | ||
| 9 | do | ||
| 10 | target_file=$(basename "${file%.ttf}.woff2") | ||
| 11 | |||
| 12 | echo -e "\033[0;32m[MINIFY ]\033[0m $file -> $OUTPUT_DIR$target_file" | ||
| 13 | |||
| 14 | pyftsubset "$file" \ | ||
| 15 | --text-file="${ASSETS_DIR}fonts/glyphs.txt" \ | ||
| 16 | --layout-features+=ss02,ss09,dlig \ | ||
| 17 | --flavor="woff2" \ | ||
| 18 | --output-file="$OUTPUT_DIR$target_file" | ||
| 19 | done | ||
