Skip to content

Commit

Permalink
build and requirements first fixes
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 153444b commit abc9469
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
33 changes: 18 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
rm -rf output/
# rm -rf output/

mkdir Fonts/ttf

for src in sources/*.glyphs
do
fontmake -g $src -o ttf -i --output-dir output/
fontmake -g $src -o ttf -i --output-dir Fonts/ttf
done

for font in output/*.ttf
ttfs=$(ls Fonts/ttf/*.ttf)
for font in $ttfs
do
gftools fix-nonhinting $font $font
gftools fix-dsig $font --autofix
gftools fix-nonhinting $ttfs
gftools fix-dsig $ttfs --autofix
done

# Cleanup gftools mess:
rm output/*-backup-fonttools-prep-gasp.ttf
# rm output/*-backup-fonttools-prep-gasp.ttf

cp METADATA.pb output
cp DESCRIPTION.*.html output
# cp METADATA.pb output
# cp DESCRIPTION.*.html output

export OPTIONS="--no-progress"
export OPTIONS="$OPTIONS --exclude-checkid /check/ftxvalidator" # We lack this on Travis.
export OPTIONS="$OPTIONS --exclude-checkid /check/varfont" # Delete this when making a variable font.
export OPTIONS="$OPTIONS --exclude-checkid /check/fontdata_namecheck" # We confirmed that "Hanken Grotesk" is
# a good family name for the GFonts collection.
export OPTIONS="$OPTIONS --loglevel INFO --ghmarkdown HankenGrotesk-fontbakery.md"
fontbakery check-googlefonts $OPTIONS output/*.ttf
# export OPTIONS="--no-progress"
# export OPTIONS="$OPTIONS --exclude-checkid /check/ftxvalidator" # We lack this on Travis.
# export OPTIONS="$OPTIONS --exclude-checkid /check/varfont" # Delete this when making a variable font.
# export OPTIONS="$OPTIONS --exclude-checkid /check/fontdata_namecheck" # We confirmed that "Hanken Grotesk" is
# # a good family name for the GFonts collection.
# export OPTIONS="$OPTIONS --loglevel INFO --ghmarkdown HankenGrotesk-fontbakery.md"
# fontbakery check-googlefonts $OPTIONS output/*.ttf
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
git+https://github.com/googlefonts/fontbakery
git+https://github.com/googlefonts/gftools
fontbakery
gftools
fontmake

0 comments on commit abc9469

Please sign in to comment.