forked from kalapi/OswaldFont
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Uses fontmake - VFs added
- Loading branch information
Showing
20 changed files
with
56,589 additions
and
22,013 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
|
||
echo "Generating Static fonts" | ||
mkdir -p ../fonts | ||
fontmake -g Oswald.glyphs -i -o ttf --output-dir ../fonts/ttf/ | ||
fontmake -g Oswald.glyphs -i -o otf --output-dir ../fonts/otf/ | ||
fontmake -g Oswald_Heavy.glyphs -o ttf --output-dir ../fonts/ttf/ | ||
fontmake -g Oswald_Heavy.glyphs -o otf --output-dir ../fonts/ttf/ | ||
|
||
echo "Generating VFs" | ||
fontmake -g Oswald.glyphs -o variable --output-path ../fonts/ttf/Oswald-VF.ttf | ||
|
||
rm -rf master_ufo/ instance_ufo/ | ||
|
||
|
||
echo "Post processing" | ||
ttfs=$(ls ../fonts/ttf/*.ttf) | ||
for ttf in $ttfs | ||
do | ||
gftools fix-dsig -f $ttf; | ||
./ttfautohint-vf $ttf "$ttf.fix"; | ||
mv "$ttf.fix" $ttf; | ||
done | ||
|
||
echo "Post processing VFs" | ||
vfs=$(ls ../fonts/ttf/*-VF.ttf) | ||
for vf in $vfs | ||
do | ||
gftools fix-dsig -f $vf; | ||
./ttfautohint-vf --stem-width-mode nnn $vf "$vf.fix"; | ||
mv "$vf.fix" $vf; | ||
done | ||
|
||
|
||
echo "Fixing VF Meta" | ||
gftools fix-vf-meta $vfs; | ||
for vf in $vfs | ||
do | ||
mv "$vf.fix" $vf; | ||
ttx -f -x "MVAR" $vf; # Drop MVAR. Table has issue in DW | ||
rtrip=$(basename -s .ttf $vf) | ||
new_file=../fonts/ttf/$rtrip.ttx; | ||
rm $vf; | ||
ttx $new_file | ||
rm $new_file | ||
done | ||
|
Binary file not shown.