2017-07-11 15:10:04 +02:00
|
|
|
#!/bin/env sh
|
2012-10-02 08:11:04 +02:00
|
|
|
|
|
|
|
family=SourceSansPro
|
2014-09-04 09:11:49 +02:00
|
|
|
romanWeights='Black Bold ExtraLight Light Regular Semibold'
|
|
|
|
italicWeights='BlackIt BoldIt ExtraLightIt LightIt It SemiboldIt'
|
2012-10-02 08:11:04 +02:00
|
|
|
|
|
|
|
# clean existing build artifacts
|
|
|
|
rm -rf target/
|
2014-09-04 09:11:49 +02:00
|
|
|
mkdir target/ target/OTF/ target/TTF/
|
2012-10-02 08:11:04 +02:00
|
|
|
|
2014-09-04 09:11:49 +02:00
|
|
|
for w in $romanWeights
|
2012-10-02 08:11:04 +02:00
|
|
|
do
|
2017-07-11 15:10:04 +02:00
|
|
|
font_path=Roman/Instances/$w/font
|
|
|
|
makeotf -f $font_path.ufo -r -o target/OTF/$family-$w.otf
|
|
|
|
makeotf -f $font_path.ttf -r -o target/TTF/$family-$w.ttf -ff $font_path.ufo/features.fea
|
2012-10-02 08:11:04 +02:00
|
|
|
done
|
|
|
|
|
2014-09-04 09:11:49 +02:00
|
|
|
for w in $italicWeights
|
2012-10-02 08:11:04 +02:00
|
|
|
do
|
2017-07-11 15:10:04 +02:00
|
|
|
font_path=Italic/Instances/$w/font
|
|
|
|
makeotf -f $font_path.ufo -r -o target/OTF/$family-$w.otf
|
|
|
|
makeotf -f $font_path.ttf -r -o target/TTF/$family-$w.ttf -ff $font_path.ufo/features.fea
|
2012-10-02 08:11:04 +02:00
|
|
|
done
|
|
|
|
|