Permalink
Browse files

Merge pull request #9 from ppicazo/build

Initial build script for SourceSansPro
  • Loading branch information...
2 parents 0042715 + e4bdcbf commit 2cd266d6344b6878972d55065d25b76d06555123 @miguelsousa miguelsousa committed Oct 2, 2012
Showing with 51 additions and 0 deletions.
  1. +25 −0 .gitignore
  2. +26 −0 build.sh
View
25 .gitignore
@@ -0,0 +1,25 @@
+target/
+Roman/Black/SourceSansPro-Black.otf
+Roman/Black/SourceSansPro-Black.ttf
+Roman/Bold/SourceSansPro-Bold.otf
+Roman/Bold/SourceSansPro-Bold.ttf
+Roman/ExtraLight/SourceSansPro-ExtraLight.otf
+Roman/ExtraLight/SourceSansPro-ExtraLight.ttf
+Roman/Light/SourceSansPro-Light.otf
+Roman/Light/SourceSansPro-Light.ttf
+Roman/Regular/SourceSansPro-Regular.otf
+Roman/Regular/SourceSansPro-Regular.ttf
+Roman/Semibold/SourceSansPro-Semibold.otf
+Roman/Semibold/SourceSansPro-Semibold.ttf
+Italic/BlackIt/SourceSansPro-BlackIt.otf
+Italic/BlackIt/SourceSansPro-BlackIt.ttf
+Italic/BoldIt/SourceSansPro-BoldIt.otf
+Italic/BoldIt/SourceSansPro-BoldIt.ttf
+Italic/ExtraLightIt/SourceSansPro-ExtraLightIt.otf
+Italic/ExtraLightIt/SourceSansPro-ExtraLightIt.ttf
+Italic/LightIt/SourceSansPro-LightIt.otf
+Italic/LightIt/SourceSansPro-LightIt.ttf
+Italic/It/SourceSansPro-It.otf
+Italic/It/SourceSansPro-It.ttf
+Italic/SemiboldIt/SourceSansPro-SemiboldIt.otf
+Italic/SemiboldIt/SourceSansPro-SemiboldIt.ttf
View
26 build.sh
@@ -0,0 +1,26 @@
+#!/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/
+mkdir target/OTF/
+mkdir target/TTF/
+
+for w in ${romanWeights[@]};
+do
+ makeotf -f Roman/$w/font.pfa -r -o target/OTF/$family-$w.otf
+ makeotf -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/TTF/$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 -f Italic/$w/font.pfa -r -o target/OTF/$family-$w.otf
+ makeotf -f Italic/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/TTF/$family-$w.ttf
+ rm Italic/$w/current.fpr # remove default options file from the source tree after building
+done
+

0 comments on commit 2cd266d

Please sign in to comment.