File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # Build OTFs
4
- for f in $( find . -name ' font.pfa' )
5
- do
6
- makeotf -f $f -r
7
- done
3
+ family=SourceCodePro
4
+ weights=(' Black' ' Bold' ' ExtraLight' ' Light' ' Regular' ' Semibold' )
5
+
6
+ # clean existing build artifacts
7
+ rm -rf target/
8
+ mkdir target/
8
9
9
- # Build TTFs
10
- for f in $( find . -name ' font.ttf' )
10
+ for w in ${weights[@]} ;
11
11
do
12
- makeotf -f $f -gf GlyphOrderAndAliasDB_TT -newNameID4 -r
12
+ makeotf -sp target/$family -$w -otf.fpr -f Roman/$w /font.pfa -r -o target/$family -$w .otf
13
+ makeotf -sp target/$family -$w -ttf.fpr -f Roman/$w /font.ttf -gf GlyphOrderAndAliasDB_TT -newNameID4 -r -o target/$family -$w .ttf
14
+ rm Roman/$w /current.fpr # remove default options file from the source tree after building
13
15
done
You can’t perform that action at this time.
0 commit comments