aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
commita16f65c7d117419bd266c28a1901ef129a337569 (patch)
tree2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts
parent8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff)
This commit was manufactured to restore the state of the 1.1-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts')
-rw-r--r--gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts b/gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts
new file mode 100644
index 000000000000..8859f8ea8630
--- /dev/null
+++ b/gnu/usr.bin/groff/devices/devdvi/generate/CompileFonts
@@ -0,0 +1,15 @@
+#! /bin/sh
+# Compile fonts in the sizes needed by groff.
+sizes="5 6 7 8 9 10 11 12 14 16 18 20 22 24 28 36"
+fonts="cmr10 cmti10 cmbx10 cmbxti10 cmtt10 cmex10 cmmi10 cmsy10 cmss10 cmssbx10 cmssi10"
+mode=cx
+dpi=300
+
+for f in $fonts; do
+ for s in $sizes; do
+ virmf "&cm \\mode=$mode; mag=$s/10; batchmode; input $f" >/dev/null
+ mag=`expr $s \* $dpi / 10`
+ gftopk $f.${mag}gf >/dev/null
+ rm $f.${mag}gf
+ done
+done