Skip to content

Commit

Permalink
build adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
vv-monsalve authored and marcologous committed Nov 24, 2020
1 parent abc9469 commit 0a66dad
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
venv
29 changes: 0 additions & 29 deletions build.sh

This file was deleted.

25 changes: 25 additions & 0 deletions sources/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# source venv/bin/activate
set -e

mkdir -p ../fonts ../fonts/ttf ../fonts/ttf/static

echo "GENERATING TTFs"
fontmake -g HankenGrotesk.glyphs -i -o ttf --output-dir ../fonts/ttf/static
fontmake -g HankenGroteskItalic.glyphs -i -o ttf --output-dir ../fonts/ttf/static

echo "POST PROCESSING TTFs"
ttfs=$(ls ../fonts/ttf/static/*.ttf)
for ttf in $ttfs
do
ttfautohint $ttf "$ttf.fix";
mv "$ttf.fix" $ttf;

gftools fix-dsig -f $ttf;

gftools fix-hinting $ttf;
mv "$ttf.fix" $ttf;

#compressing for woff2
#fonttools ttLib.woff2 compress $ttf

done

0 comments on commit 0a66dad

Please sign in to comment.