Skip to content

Commit 1f9712e

Browse files
committed
Add build commands for variable TTFs
1 parent e78d37c commit 1f9712e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

buildVFs.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ sfntedit -a CFF2=$itm/.tb_cff2 $itm/$it_name.otf 1> /dev/null
3232
"$addSVG" $rom/$ro_name.otf svg
3333
"$addSVG" $itm/$it_name.otf svg
3434

35+
# build variable TTFs
36+
fontmake -m $rom/$ro_name.designspace -o variable --production-names
37+
fontmake -m $itm/$it_name.designspace -o variable --production-names
38+
39+
# use cmap, DSIG, name, OS/2, hhea, post, SVG, and STAT tables from OTFs
40+
sfntedit -x cmap=$rom/.tb_cmap,DSIG=$rom/.tb_DSIG,name=$rom/.tb_name,OS/2=$rom/.tb_os2,hhea=$rom/.tb_hhea,post=$rom/.tb_post,SVG=$rom/.tb_SVG,STAT=$rom/.tb_STAT $rom/$ro_name.otf 1> /dev/null
41+
sfntedit -a cmap=$rom/.tb_cmap,DSIG=$rom/.tb_DSIG,name=$rom/.tb_name,OS/2=$rom/.tb_os2,hhea=$rom/.tb_hhea,post=$rom/.tb_post,SVG=$rom/.tb_SVG,STAT=$rom/.tb_STAT $rom/$ro_name.ttf 1> /dev/null
42+
sfntedit -x cmap=$itm/.tb_cmap,DSIG=$itm/.tb_DSIG,name=$itm/.tb_name,OS/2=$itm/.tb_os2,hhea=$itm/.tb_hhea,post=$itm/.tb_post,SVG=$itm/.tb_SVG,STAT=$itm/.tb_STAT $itm/$it_name.otf 1> /dev/null
43+
sfntedit -a cmap=$itm/.tb_cmap,DSIG=$itm/.tb_DSIG,name=$itm/.tb_name,OS/2=$itm/.tb_os2,hhea=$itm/.tb_hhea,post=$itm/.tb_post,SVG=$itm/.tb_SVG,STAT=$itm/.tb_STAT $itm/$it_name.ttf 1> /dev/null
44+
45+
# use GDEF, GPOS, and GSUB tables from TTFs
46+
sfntedit -x GDEF=$rom/.tb_GDEF,GPOS=$rom/.tb_GPOS,GSUB=$rom/.tb_GSUB $rom/$ro_name.ttf 1> /dev/null
47+
sfntedit -a GDEF=$rom/.tb_GDEF,GPOS=$rom/.tb_GPOS,GSUB=$rom/.tb_GSUB $rom/$ro_name.otf 1> /dev/null
48+
sfntedit -x GDEF=$itm/.tb_GDEF,GPOS=$itm/.tb_GPOS,GSUB=$itm/.tb_GSUB $itm/$it_name.ttf 1> /dev/null
49+
sfntedit -a GDEF=$itm/.tb_GDEF,GPOS=$itm/.tb_GPOS,GSUB=$itm/.tb_GSUB $itm/$it_name.otf 1> /dev/null
50+
3551
# delete build artifacts
3652
rm */Masters/.tb_*
3753
rm */Masters/master_*/*.*tf

0 commit comments

Comments
 (0)