Skip to content

Commit

Permalink
Added build chain
Browse files Browse the repository at this point in the history
- Uses fontmake
- VFs added
  • Loading branch information
m4rc1e authored and davelab6 committed Jan 17, 2019
1 parent a300253 commit 5a5fff2
Show file tree
Hide file tree
Showing 20 changed files with 56,589 additions and 22,013 deletions.
Binary file modified fonts/otf/Oswald-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/Oswald-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/Oswald-Light.otf
Binary file not shown.
Binary file modified fonts/otf/Oswald-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/Oswald-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/Oswald-SemiBold.otf
Binary file not shown.
Binary file removed fonts/otf/OswaldHeavy-Regular.otf
Binary file not shown.
Binary file modified fonts/ttf/Oswald-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Oswald-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/Oswald-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/Oswald-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/Oswald-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/Oswald-SemiBold.ttf
Binary file not shown.
Binary file added fonts/ttf/Oswald-VF.ttf
Binary file not shown.
Binary file added fonts/ttf/OswaldHeavy-Regular.otf
Binary file not shown.
Binary file modified fonts/ttf/OswaldHeavy-Regular.ttf
Binary file not shown.
35,430 changes: 13,417 additions & 22,013 deletions sources/Oswald.glyphs

Large diffs are not rendered by default.

43,123 changes: 43,123 additions & 0 deletions sources/Oswald_Heavy.glyphs

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions sources/build.sh
@@ -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 added sources/ttfautohint-vf
Binary file not shown.

0 comments on commit 5a5fff2

Please sign in to comment.