mirror of
https://github.com/adobe-fonts/source-sans.git
synced 2024-12-30 14:26:16 +01:00
Add initial build script.
This commit is contained in:
parent
004271505b
commit
3e4d1a1844
1 changed files with 24 additions and 0 deletions
24
build.sh
Executable file
24
build.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
family=SourceSansPro
|
||||
romanWeights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold')
|
||||
italicWeights=('BlackIt', 'BoldIt', 'ExtraLightIt', 'LightIt', 'It', 'SemiboldIt')
|
||||
|
||||
# clean existing build artifacts
|
||||
rm -rf target/
|
||||
mkdir target/
|
||||
|
||||
for w in ${romanWeights[@]};
|
||||
do
|
||||
makeotf -sp target/$family-$w-otf.fpr -f Roman/$w/font.pfa -r -o target/$family-$w.otf
|
||||
makeotf -sp target/$family-$w-ttf.fpr -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/$family-$w.ttf
|
||||
rm Roman/$w/current.fpr # remove default options file from the source tree after building
|
||||
done
|
||||
|
||||
for w in ${italicWeights[@]};
|
||||
do
|
||||
makeotf -sp target/$family-$w-otf.fpr -f Italic/$w/font.pfa -r -o target/$family-$w.otf
|
||||
makeotf -sp target/$family-$w-ttf.fpr -f Italic/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/$family-$w.ttf
|
||||
rm Italic/$w/current.fpr # remove default options file from the source tree after building
|
||||
done
|
||||
|
Loading…
Reference in a new issue