Skip to content

Commit 1d61c71

Browse files
committed
Reconsolidate build script
1 parent 9a1cc9c commit 1d61c71

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

buildFont.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/env sh
2+
3+
# build the TTF version -- this requires a customized version of fontmake which
4+
# is available at https://github.com/adobe-type-tools/fontmake
5+
fontmake -m RomanMasters/AdobeVFPrototype.designspace -o variable --production-names
6+
mv RomanMasters/AdobeVFPrototype-Variable.ttf AdobeVFPrototype.ttf
7+
8+
# patch GSUB table, to add <FeatureVariations>
9+
# this enables the transitional glyphs dollar and cent
10+
ttx -o AdobeVFPrototype.ttf -m AdobeVFPrototype.ttf GSUB_patch.ttx
11+
12+
# build the OTF version -- this requires an experimental build of the AFDKO which
13+
# is available at http://www.adobe.com/devnet/opentype/afdko/AFDKO-Variable-Font-Support.html
14+
buildMasterOTFs RomanMasters/AdobeVFPrototype.designspace
15+
buildCFF2VF RomanMasters/AdobeVFPrototype.designspace AdobeVFPrototype.otf
16+
rm RomanMasters/master_*/current.fpr
17+
18+
# replace the name, GPOS and GSUB tables in the OTF font by the ones from the TTF
19+
sfntedit -x name=.tb_name,GPOS=.tb_GPOS,GSUB=.tb_GSUB AdobeVFPrototype.ttf
20+
sfntedit -a name=.tb_name,GPOS=.tb_GPOS,GSUB=.tb_GSUB AdobeVFPrototype.otf
21+
22+
# copy the DSIG table in the OTF font into the TTF
23+
sfntedit -x DSIG=.tb_DSIG AdobeVFPrototype.otf
24+
sfntedit -a DSIG=.tb_DSIG AdobeVFPrototype.ttf
25+
26+
# delete temporary files
27+
rm .tb_*

buildOTFont.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

buildTTFont.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)