forked from marcologous/hanken-grotesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
153444b
commit abc9469
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |