PageRenderTime 20ms CodeModel.GetById 8ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/contrib/groff/font/devdvi/generate/CompileFonts

https://bitbucket.org/freebsd/freebsd-head/
Shell | 15 lines | 12 code | 1 blank | 2 comment | 2 complexity | 55703dda7d2517fb7910479c418512aa MD5 | raw file
 1#! /bin/sh
 2# Compile fonts in the sizes needed by groff.
 3sizes="5 6 7 8 9 10 10.95 12 14 14.40 16 17.28 18 20 20.74 22 24 24.88 28 36"
 4fonts="cmr10 cmti10 cmbx10 cmbxti10 cmtt10 cmex10 cmmi10 cmsy10 cmss10 cmssbx10 cmssi10"
 5mode=cx
 6dpi=300
 7
 8for f in $fonts; do
 9    for s in $sizes; do
10	virmf "&cm \\mode=$mode; mag=$s/10; batchmode; input $f" >/dev/null
11	mag=`expr $s \* $dpi / 10`
12	gftopk $f.${mag}gf >/dev/null
13	rm $f.${mag}gf
14    done
15done