blob: 1468592b11fce78bcd2e2345be525b4a779d109f (
plain)
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
|
#!/bin/bash
fonts=(drm10 drmsl10 drmit10 drmui10 drmsc10 drmtc10 drml10 \
drmb10 drmbx10 drmmi10 drmsy10 drmomx10 drmsym10);
encs=(T1 T1 T1 T1 T1 T1 T1 T1 T1 OML OMS OMX TS1);
names=(drm drm drm drm drm drm drm drm drm drm drm drm drmsym);
weights=(m m m m m m l b bx m m m m);
shapes=(n sl it ui sc tc n n n n n n n);
j=0;
for i in "${fonts[@]}"; do
nfssfontin=$(cat <<ENDFONTIN
${fonts[j]}
\table\bye
${encs[j]}
${names[j]}
${weights[j]}
${shapes[j]}
10
\table\bye
ENDFONTIN
)
#echo "$nfssfontin";
echo "$nfssfontin" | pdflatex nfssfont;
if [ $j == 0 ]; then
mv nfssfont.pdf tables_0.pdf;
else
# echo "cat nfssfont.pdf to tables_$((j-1)), output tables_$j.pdf";
pdftk A=nfssfont.pdf B=tables_$((j-1)).pdf cat B A output tables_$j.pdf;
fi;
let "j++";
done
mv tables_12.pdf drm_font_tables.pdf;
rm tables_*.pdf;
|