forked from adobe-fonts/source-han-sans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOMMANDS.txt
248 lines (155 loc) · 12.6 KB
/
COMMANDS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# Command lines for building Source Han Sans OTFs & OTCs
#
# Version 2016-03-02
#
# To subroutinize the 'CFF' table, which may take several hours for
# the 65,535-glyph fonts, replace "-nS" with "-maxs 30000" in the
# makeotf command lines.
#
# To add the "stub" 'DSIG' table to the OpenType/CFF fonts, one of the
# following AFDKO command lines can be used, depending on the directory
# in which it is executed:
#
# sfntedit -a DSIG=../DSIG.bin <font>.otf
# sfntedit -a DSIG=../../DSIG.bin <font>.otf
#
# Important Note: Do not add this 'DSIG' table to the OpenType/CFF
# fonts that are used to build the OTCs, nor to the OTCs themselves.
### Command lines for building the region-specific subset OTFs
### Executed in {ExtraLight,Light,Normal,Regular,Medium,Bold,Heavy}
# Simplified Chinese
makeotf -f cidfont.ps.CN -ff features.CN -fi cidfontinfo.CN -mf ../FontMenuNameDB.SUBSET -r -nS -cs 25 -ch ../UniSourceHanSansCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.TW -ff features.TW -fi cidfontinfo.TW -mf ../FontMenuNameDB.SUBSET -r -nS -cs 2 -ch ../UniSourceHanSansTW-UTF32-H -ci ../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.JP -ff features.JP -fi cidfontinfo.JP -mf ../FontMenuNameDB.SUBSET -r -nS -cs 1 -ch ../UniSourceHanSansJP-UTF32-H -ci ../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.KR -ff features.KR -fi cidfontinfo.KR -mf ../FontMenuNameDB.SUBSET -r -nS -cs 3 -ch ../UniSourceHanSansKR-UTF32-H -ci ../SourceHanSans_KR_sequences.txt
### Command lines for building alternate style-linked region-specific subset OTFs
### Executed in Regular
# Simplified Chinese
makeotf -f cidfont.ps.CN -ff features.CN -fi cidfontinfo.CN -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 25 -ch ../UniSourceHanSansCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.TW -ff features.TW -fi cidfontinfo.TW -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 2 -ch ../UniSourceHanSansTW-UTF32-H -ci ../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.JP -ff features.JP -fi cidfontinfo.JP -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 1 -ch ../UniSourceHanSansJP-UTF32-H -ci ../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.KR -ff features.KR -fi cidfontinfo.KR -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 3 -ch ../UniSourceHanSansKR-UTF32-H -ci ../SourceHanSans_KR_sequences.txt
### Executed in Bold
# Simplified Chinese
makeotf -f cidfont.ps.CN -ff features.CN -fi cidfontinfo.CN.SL -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 25 -ch ../UniSourceHanSansCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.TW -ff features.TW -fi cidfontinfo.TW.SL -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 2 -ch ../UniSourceHanSansTW-UTF32-H -ci ../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.JP -ff features.JP -fi cidfontinfo.JP.SL -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 1 -ch ../UniSourceHanSansJP-UTF32-H -ci ../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.KR -ff features.KR -fi cidfontinfo.KR.SL -mf ../FontMenuNameDB.SUBSET.SL -r -nS -cs 3 -ch ../UniSourceHanSansKR-UTF32-H -ci ../SourceHanSans_KR_sequences.txt
### Command lines for building the language-specific OTFs
### Executed in {ExtraLight,Light,Normal,Regular,Medium,Bold,Heavy}/OTC
# Simplified Chinese
makeotf -f cidfont.ps.OTC.SC -ff features.OTC.SC -fi cidfontinfo.OTC.SC -mf ../../FontMenuNameDB -r -nS -cs 25 -ch ../../UniSourceHanSansCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.OTC.TC -ff features.OTC.TC -fi cidfontinfo.OTC.TC -mf ../../FontMenuNameDB -r -nS -cs 2 -ch ../../UniSourceHanSansTW-UTF32-H -ci ../../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.OTC.J -ff features.OTC.J -fi cidfontinfo.OTC.J -mf ../../FontMenuNameDB -r -nS -cs 1 -ch ../../UniSourceHanSansJP-UTF32-H -ci ../../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.OTC.K -ff features.OTC.K -fi cidfontinfo.OTC.K -mf ../../FontMenuNameDB -r -nS -cs 3 -ch ../../UniSourceHanSansKR-UTF32-H -ci ../../SourceHanSans_KR_sequences.txt
### Command lines for building alternate style-linked language-specific OTFs
### Executed in Regular/OTC
# Simplified Chinese
makeotf -f cidfont.ps.OTC.SC -ff features.OTC.SC -fi cidfontinfo.OTC.SC -mf ../../FontMenuNameDB.SL -r -nS -cs 25 -ch ../../UniSourceHanSansCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.OTC.TC -ff features.OTC.TC -fi cidfontinfo.OTC.TC -mf ../../FontMenuNameDB.SL -r -nS -cs 2 -ch ../../UniSourceHanSansTW-UTF32-H -ci ../../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.OTC.J -ff features.OTC.J -fi cidfontinfo.OTC.J -mf ../../FontMenuNameDB.SL -r -nS -cs 1 -ch ../../UniSourceHanSansJP-UTF32-H -ci ../../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.OTC.K -ff features.OTC.K -fi cidfontinfo.OTC.K -mf ../../FontMenuNameDB.SL -r -nS -cs 3 -ch ../../UniSourceHanSansKR-UTF32-H -ci ../../SourceHanSans_KR_sequences.txt
### Executed in Bold/OTC
# Simplified Chinese
makeotf -f cidfont.ps.OTC.SC -ff features.OTC.SC -fi cidfontinfo.OTC.SC.SL -mf ../../FontMenuNameDB.SL -r -nS -cs 25 -ch ../../UniSourceHanSansCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.OTC.TC -ff features.OTC.TC -fi cidfontinfo.OTC.TC.SL -mf ../../FontMenuNameDB.SL -r -nS -cs 2 -ch ../../UniSourceHanSansTW-UTF32-H -ci ../../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.OTC.J -ff features.OTC.J -fi cidfontinfo.OTC.J.SL -mf ../../FontMenuNameDB.SL -r -nS -cs 1 -ch ../../UniSourceHanSansJP-UTF32-H -ci ../../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.OTC.K -ff features.OTC.K -fi cidfontinfo.OTC.K.SL -mf ../../FontMenuNameDB.SL -r -nS -cs 3 -ch ../../UniSourceHanSansKR-UTF32-H -ci ../../SourceHanSans_KR_sequences.txt
### Command lines for building the language-specific half-width (HW) OTFs
### Executed in {Regular,Bold}/OTC
# Simplified Chinese
makeotf -f cidfont.ps.OTC.HW.SC -ff features.OTC.SC -fi cidfontinfo.OTC.HW.SC -mf ../../FontMenuNameDB.HW -r -nS -cs 25 -ch ../../UniSourceHanSansHWCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.OTC.HW.TC -ff features.OTC.TC -fi cidfontinfo.OTC.HW.TC -mf ../../FontMenuNameDB.HW -r -nS -cs 2 -ch ../../UniSourceHanSansHWTW-UTF32-H -ci ../../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.OTC.HW.J -ff features.OTC.J -fi cidfontinfo.OTC.HW.J -mf ../../FontMenuNameDB.HW -r -nS -cs 1 -ch ../../UniSourceHanSansHWJP-UTF32-H -ci ../../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.OTC.HW.K -ff features.OTC.K -fi cidfontinfo.OTC.HW.K -mf ../../FontMenuNameDB.HW -r -nS -cs 3 -ch ../../UniSourceHanSansHWKR-UTF32-H -ci ../../SourceHanSans_KR_sequences.txt
### Command lines for building alternate style-linked language-specific half-width (HW) OTFs
### Executed in Regular/OTC
# Simplified Chinese
makeotf -f cidfont.ps.OTC.HW.SC -ff features.OTC.SC -fi cidfontinfo.OTC.HW.SC -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 25 -ch ../../UniSourceHanSansHWCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.OTC.HW.TC -ff features.OTC.TC -fi cidfontinfo.OTC.HW.TC -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 2 -ch ../../UniSourceHanSansHWTW-UTF32-H -ci ../../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.OTC.HW.J -ff features.OTC.J -fi cidfontinfo.OTC.HW.J -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 1 -ch ../../UniSourceHanSansHWJP-UTF32-H -ci ../../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.OTC.HW.K -ff features.OTC.K -fi cidfontinfo.OTC.HW.K -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 3 -ch ../../UniSourceHanSansHWKR-UTF32-H -ci ../../SourceHanSans_KR_sequences.txt
### Executed in Bold/OTC
# Simplified Chinese
makeotf -f cidfont.ps.OTC.HW.SC -ff features.OTC.SC -fi cidfontinfo.OTC.HW.SC.SL -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 25 -ch ../../UniSourceHanSansHWCN-UTF32-H
# Traditional Chinese (TW)
makeotf -f cidfont.ps.OTC.HW.TC -ff features.OTC.TC -fi cidfontinfo.OTC.HW.TC.SL -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 2 -ch ../../UniSourceHanSansHWTW-UTF32-H -ci ../../SourceHanSans_TWHK_sequences.txt
# Japanese
makeotf -f cidfont.ps.OTC.HW.J -ff features.OTC.J -fi cidfontinfo.OTC.HW.J.SL -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 1 -ch ../../UniSourceHanSansHWJP-UTF32-H -ci ../../SourceHanSans_JP_sequences.txt
# Korean
makeotf -f cidfont.ps.OTC.HW.K -ff features.OTC.K -fi cidfontinfo.OTC.HW.K.SL -mf ../../FontMenuNameDB.HW.SL -r -nS -cs 3 -ch ../../UniSourceHanSansHWKR-UTF32-H -ci ../../SourceHanSans_KR_sequences.txt
### Command line for building the OTCs (replace $dir with the face name)
### Executed in {ExtraLight,Light,Normal,Medium,Heavy}/OTC
otf2otc -t 'CFF '=0 -o SourceHanSans-$dir.ttc SourceHanSans-$dir.otf SourceHanSansK-$dir.otf SourceHanSansSC-$dir.otf SourceHanSansTC-$dir.otf
### Executed in {Regular,Bold}/OTC
otf2otc -t 'CFF '=0 -o SourceHanSans-$dir.ttc SourceHanSans-$dir.otf SourceHanSansK-$dir.otf SourceHanSansSC-$dir.otf SourceHanSansTC-$dir.otf SourceHanSansHW-$dir.otf SourceHanSansHWK-$dir.otf SourceHanSansHWSC-$dir.otf SourceHanSansHWTC-$dir.otf
### Command lines for building the Super OTC
# Command lines for copying the CFF from the Japanese OTF to temporary
# (tmp) copies of the Simplified Chinese, Traditional Chinese, and
# Korean OTFs (replace $dir with the face name)
# Executed in {ExtraLight,Light,Normal,Medium,Heavy}/OTC
sfntedit -x CFF=CFF.J SourceHanSans-$dir.otf
cp SourceHanSans-$dir.otf SourceHanSans-$dir.otf.tmp
cp SourceHanSansK-$dir.otf SourceHanSansK-$dir.otf.tmp
cp SourceHanSansSC-$dir.otf SourceHanSansSC-$dir.otf.tmp
cp SourceHanSansTC-$dir.otf SourceHanSansTC-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansK-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansSC-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansTC-$dir.otf.tmp
sfntedit -d DSIG SourceHanSans-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansK-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansSC-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansTC-$dir.otf.tmp
# Executed in {Regular,Bold}/OTC
sfntedit -x CFF=CFF.J SourceHanSans-$dir.otf
cp SourceHanSans-$dir.otf SourceHanSans-$dir.otf.tmp
cp SourceHanSansK-$dir.otf SourceHanSansK-$dir.otf.tmp
cp SourceHanSansSC-$dir.otf SourceHanSansSC-$dir.otf.tmp
cp SourceHanSansTC-$dir.otf SourceHanSansTC-$dir.otf.tmp
cp SourceHanSansHW-$dir.otf SourceHanSansHW-$dir.otf.tmp
cp SourceHanSansHWK-$dir.otf SourceHanSansHWK-$dir.otf.tmp
cp SourceHanSansHWSC-$dir.otf SourceHanSansHWSC-$dir.otf.tmp
cp SourceHanSansHWTC-$dir.otf SourceHanSansHWTC-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansK-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansSC-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansTC-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansHW-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansHWK-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansHWSC-$dir.otf.tmp
sfntedit -a CFF=CFF.J SourceHanSansHWTC-$dir.otf.tmp
sfntedit -d DSIG SourceHanSans-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansK-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansSC-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansTC-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansHW-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansHWK-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansHWSC-$dir.otf.tmp
sfntedit -d DSIG SourceHanSansHWTC-$dir.otf.tmp
# Command line for building the Super OTC
# Executed in the root directory
otf2otc -o SourceHanSans.ttc ExtraLight/OTC/SourceHanSans-ExtraLight.otf.tmp ExtraLight/OTC/SourceHanSansK-ExtraLight.otf.tmp ExtraLight/OTC/SourceHanSansSC-ExtraLight.otf.tmp ExtraLight/OTC/SourceHanSansTC-ExtraLight.otf.tmp Light/OTC/SourceHanSans-Light.otf.tmp Light/OTC/SourceHanSansK-Light.otf.tmp Light/OTC/SourceHanSansSC-Light.otf.tmp Light/OTC/SourceHanSansTC-Light.otf.tmp Normal/OTC/SourceHanSans-Normal.otf.tmp Normal/OTC/SourceHanSansK-Normal.otf.tmp Normal/OTC/SourceHanSansSC-Normal.otf.tmp Normal/OTC/SourceHanSansTC-Normal.otf.tmp Regular/OTC/SourceHanSans-Regular.otf.tmp Regular/OTC/SourceHanSansK-Regular.otf.tmp Regular/OTC/SourceHanSansSC-Regular.otf.tmp Regular/OTC/SourceHanSansTC-Regular.otf.tmp Regular/OTC/SourceHanSansHW-Regular.otf.tmp Regular/OTC/SourceHanSansHWK-Regular.otf.tmp Regular/OTC/SourceHanSansHWSC-Regular.otf.tmp Regular/OTC/SourceHanSansHWTC-Regular.otf.tmp Medium/OTC/SourceHanSans-Medium.otf.tmp Medium/OTC/SourceHanSansK-Medium.otf.tmp Medium/OTC/SourceHanSansSC-Medium.otf.tmp Medium/OTC/SourceHanSansTC-Medium.otf.tmp Bold/OTC/SourceHanSans-Bold.otf.tmp Bold/OTC/SourceHanSansK-Bold.otf.tmp Bold/OTC/SourceHanSansSC-Bold.otf.tmp Bold/OTC/SourceHanSansTC-Bold.otf.tmp Bold/OTC/SourceHanSansHW-Bold.otf.tmp Bold/OTC/SourceHanSansHWK-Bold.otf.tmp Bold/OTC/SourceHanSansHWSC-Bold.otf.tmp Bold/OTC/SourceHanSansHWTC-Bold.otf.tmp Heavy/OTC/SourceHanSans-Heavy.otf.tmp Heavy/OTC/SourceHanSansK-Heavy.otf.tmp Heavy/OTC/SourceHanSansSC-Heavy.otf.tmp Heavy/OTC/SourceHanSansTC-Heavy.otf.tmp
# EOF