Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When building the fonts using included build script, create artifacts…

… outside of the main source tree.
  • Loading branch information...
commit dabf359b48bc31113aaa0f624db3a17eb0785e2f 1 parent 7443559
Paul Picazo ppicazo authored
Showing with 10 additions and 8 deletions.
  1. +10 −8 build.sh
18 build.sh
View
@@ -1,13 +1,15 @@
#!/bin/sh
-# Build OTFs
-for f in $(find . -name 'font.pfa')
-do
- makeotf -f $f -r
-done
+family=SourceCodePro
+weights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold')
+
+# clean existing build artifacts
+rm -rf target/
+mkdir target/
-# Build TTFs
-for f in $(find . -name 'font.ttf')
+for w in ${weights[@]};
do
- makeotf -f $f -gf GlyphOrderAndAliasDB_TT -newNameID4 -r
+ 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 -newNameID4 -r -o target/$family-$w.ttf
+ rm Roman/$w/current.fpr # remove default options file from the source tree after building
done
Please sign in to comment.
Something went wrong with that request. Please try again.