subset alegreya now
This commit is contained in:
parent
db4e7eb22b
commit
89b650af7e
4 changed files with 34 additions and 9 deletions
14
build.sh
14
build.sh
|
@ -13,12 +13,26 @@ function soup_config {
|
|||
source ./pgvv/bin/activate
|
||||
|
||||
find acl.cool/site/ ytheleus.org/site/ -type f \( -name '*.dj' -o -name '*.html' \) -exec cat {} + > all_chars.txt
|
||||
cat common_chars.txt >> all_chars.txt
|
||||
|
||||
for font in fonts/JuliaMono/*{-Light,-Regular,-SemiBold}{,Italic}.woff2; do
|
||||
echo "Subsetting $font"
|
||||
pyftsubset "$font" --flavor=woff2 --text-file=all_chars.txt \
|
||||
--output-file="$(awk -F '.woff2' '{print $1}' <<< "$font")-Subset.woff2"
|
||||
done
|
||||
|
||||
for font in fonts/Alegreya/static/Alegreya-{Regular,Italic,Bold,BoldItalic}.ttf; do
|
||||
echo "Subsetting $font"
|
||||
pyftsubset "$font" --text-file=all_chars.txt \
|
||||
--output-file="$(awk -F '.ttf' '{print $1}' <<< "$font")-Subset.ttf"
|
||||
done
|
||||
|
||||
for font in fonts/Alegreya_Sans/AlegreyaSans-{Regular,Italic,Bold,BoldItalic}.ttf; do
|
||||
echo "Subsetting $font"
|
||||
pyftsubset "$font" --text-file=all_chars.txt \
|
||||
--output-file="$(awk -F '.ttf' '{print $1}' <<< "$font")-Subset.ttf"
|
||||
done
|
||||
|
||||
rm css/code.css
|
||||
pygmentize -f html -S algol_nu | grep -v 'line-height' > css/code.css
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue