@@ -83,19 +83,22 @@ cmd buildFont.sh
83
83
84
84
### Build process
85
85
86
- The ** buildFont.sh** file first runs ` fontmake ` to build the variable TrueType font. The
87
- ` GSUB ` table of this font is then patched with ` ttx ` to add a * [ feature variations table] *
88
- — this patching is what enables the transitional glyphs to work.
89
-
90
- Next, the OpenType-CFF2 font is built with the scripts ` buildMasterOTFs ` and ` buildCFF2VF ` .
91
- The first script generates OpenType-CFF fonts from each of the UFO masters. And the
86
+ The ** buildFont.sh** script first builds the OpenType-CFF2 font with the FDK tools
87
+ ` buildMasterOTFs ` and ` buildCFF2VF ` .
88
+ The first tool generates OpenType-CFF fonts from each of the UFO masters. And the
92
89
second takes the set of OTFs built in the previous step, and combines them to produce
93
90
the CFF2 variable font. More details about the process are provided at
94
91
< http://www.adobe.com/devnet/opentype/afdko/AFDKO-Variable-Font-Support.html >
95
92
96
- Finally, ` sfntedit ` is used for replacing the ` name ` , ` GPOS ` and ` GSUB ` tables in the
97
- OT-CFF2 font by the ones from the TT font. And the tool is also use for copying the
98
- OTF's ` DSIG ` table into the TTF.
93
+ The CFF2 table is then subroutinized with FDK's ` tx ` tool, and the modified table
94
+ is replaced in place using FDK's ` sfntedit ` tool.
95
+
96
+ Next, ` fontmake ` is used for building the variable TrueType font. The ` GSUB `
97
+ table of this font is then patched with ` ttx ` to add a * [ feature variations table] *
98
+ — this patching is what enables the transitional glyphs to work.
99
+
100
+ Finally, ` sfntedit ` is used for copying/replacing several tables between the
101
+ OTF and TTF fonts.
99
102
100
103
[ feature variations table ] : https://www.microsoft.com/typography/otspec/chapter2.htm#featvartable
101
104
@@ -105,8 +108,6 @@ OTF's `DSIG` table into the TTF.
105
108
* The OpenType-CFF2 font cannot be displayed by macOS or Windows because their font
106
109
rasterizers do not yet support the newer ` CFF2 ` table. (As of this moment, the only tool
107
110
that can render OT-CFF2 fonts is [ FontView] ).
108
- * The font's ` CFF2 ` table is not subroutinized.
109
111
* Neither of the fonts is hinted.
110
- * Neither of the fonts contains the required ` MVAR ` and ` STAT ` tables.
111
112
112
113
[ FontView ] : https://github.com/googlei18n/fontview
0 commit comments