forked from adobe-fonts/source-han-code-jp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.sh
executable file
·59 lines (44 loc) · 1.04 KB
/
commands.sh
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
#!/bin/sh
# To subroutinize the 'CFF' table, replace "-nS" with "-maxs 30000" in the makeotf command lines.
tfont=cidfont_fs.ps
itfont=cidfont_it_fs.ps
cmap=../UniSourceHanCodeJP-UTF32-H
itcmap=../UniSourceHanCodeJPIt-UTF32-H
fdb=../FontMenuNameDB
vs=../SourceHanCode_JP_sequences.txt
svg=../svg
for wt in ExtraLight Light Normal Regular Medium Bold Heavy
do
nf=SourceHanCodeJP-${wt}.otf
inf=SourceHanCodeJP-${wt}It.otf
ttc=SourceHanCodeJP-${wt}.ttc
cd ${wt}
echo
pwd
if makeotf -f ${tfont} -mf ${fdb} -ff features -fi cidfontinfo -r -nS -cs 1 -ch $cmap -ci ${vs} -o ${nf} 2>&1 ; then :
else
echo Error
exit
fi
if makeotf -f ${itfont} -mf ${fdb} -ff features.it -fi cidfontinfo.it -r -nS -cs 1 -ch $itcmap -ci ${vs} -o ${inf} 2>&1 ; then :
else
echo Error
exit
fi
if addSVGtable.py -s $svg ${nf} ; then :
else
echo Error
exit
fi
if addSVGtable.py -s $svg ${inf} ; then :
else
echo Error
exit
fi
#if otf2otc -t 'CFF '=0 -o ${ttc} ${nf} ${inf} ; then :
#else
# echo Error
# exit
#fi
cd ../
done