for i in *.ttf; do python setflag.py "$i" echo "Set flag for $i" done for i in Hairline Thin; do ttfautohint -n -w G -x 0 -f latn WorkSans-$i#1.ttf WorkSans-$i.ttf echo "WorkSans-$i.ttf hinted" done for i in ExtraLight Light Regular Medium SemiBold Bold ExtraBold Black ; do ttfautohint -n -w G -x 0 -f latn --control-file=hinting/WorkSans-$i.ctrl WorkSans-$i#1.ttf WorkSans-$i.ttf echo "WorkSans-$i.ttf hinted" done for i in *#1.ttf; do rm "$i" done