1
0
Fork 0
mirror of https://github.com/adobe-fonts/source-sans.git synced 2024-12-30 14:26:16 +01:00
adobe-source-sans/build.sh

26 lines
710 B
Bash
Raw Normal View History

2017-07-26 09:01:04 +02:00
#!/usr/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/
2017-07-26 09:01:04 +02:00
otfDir="target/OTF"
ttfDir="target/TTF"
mkdir -p $otfDir $ttfDir
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
2017-07-26 09:01:04 +02:00
makeotf -f $font_path.ufo -r -o $otfDir/$family-$w.otf
makeotf -f $font_path.ttf -r -o $ttfDir/$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
2017-07-26 09:01:04 +02:00
makeotf -f $font_path.ufo -r -o $otfDir/$family-$w.otf
makeotf -f $font_path.ttf -r -o $ttfDir/$family-$w.ttf -ff $font_path.ufo/features.fea
2012-10-02 08:11:04 +02:00
done