| 1 |
#! /bin/sh |
| 2 |
# |
| 3 |
# Please see the file LICENCE-wsuipa.txt for licensing information. |
| 4 |
# |
| 5 |
#Here is a shell script, compilefonts, to call mf to generate a set of gf |
| 6 |
#fonts in the desired sizes, e.g. for a screen previewer or possibly for a |
| 7 |
#400 or 600 dpi printer, and then to call gftopk to convert to pk format |
| 8 |
#and finally to remove the gf fonts. I have also included a help file, |
| 9 |
#mf.help. Please feel free to edit these in any way you see fit. I have |
| 10 |
#tested the script and can guarantee that it works. |
| 11 |
# |
| 12 |
#Chet Creider |
| 13 |
#<[email protected]> |
| 14 |
# |
| 15 |
# Compile wusipa fonts for a previewer. |
| 16 |
sizes="10" |
| 17 |
fonts="wsuipa8 wsuipa9 wsuipa10 wsuipa11 wsuipa12 wsuipa17 \ |
| 18 |
wbxipa8 wbxipa9 wbxipa10 wbxipa11 wbxipa12 wbxipa17 \ |
| 19 |
wslipa8 wslipa9 wslipa10 wslipa11 wslipa12 wslipa17" |
| 20 |
|
| 21 |
mode=OneTwoZero |
| 22 |
dpi=120 |
| 23 |
|
| 24 |
for f in $fonts; do |
| 25 |
for s in $sizes; do |
| 26 |
virmf "&cm \\mode=$mode; mag=$s/10; batchmode; input $f" >/dev/null |
| 27 |
mag=`expr $s \* $dpi / 10` |
| 28 |
gftopk $f.${mag}gf >/dev/null |
| 29 |
rm $f.${mag}gf |
| 30 |
done |
| 31 |
done |
| 32 |
|
| 33 |
------------------------------------8<------------------------------------ |
| 34 |
The 300pk fonts in this directory should be sufficient for use with most |
| 35 |
standard 300dpi laserprinters. If you use a recent version of dvips, it |
| 36 |
will call metafont on the fly to generate the fonts it needs as long as |
| 37 |
it can find the .mf files. If you use xdvi or maxview as your |
| 38 |
previewer, the 300pk fonts should be sufficient. For other previewers, |
| 39 |
however, you will probably have to generate your own screen fonts. The |
| 40 |
easiest way to use metafont to do this is with the script, compilefonts, |
| 41 |
based on a script, CompileFonts, by James Clark, the author of groff. |
| 42 |
However, it is essential that the mode chosen be one which is in |
| 43 |
/usr/local/lib/tex/mf/inputs/modes.mf (or wherever on one's installation |
| 44 |
this file is kept). E.g. for 120dpi fonts for dvipage under Sunview, |
| 45 |
choose mode=OneTwoZero. For 110dpi fonts for dvivga under Xenix, use |
| 46 |
mode=IBMVGA and dpi=110. If one is using dvivga under MS-DOS, it will |
| 47 |
be necessary to rename the fonts because of filename limitations under |
| 48 |
MS-DOS. Use the directory structure and filenames in your dvivga |
| 49 |
installation as a model. |
| 50 |
|
| 51 |
Let me repeat again that the modes MUST be defined in modes.mf. If |
| 52 |
you need the above modes and they are not present, ask your system |
| 53 |
administrator to obtain a more up-to-date modes.mf file. (One should |
| 54 |
always be available at a nearby CTAN archive site.) |
| 55 |
|
| 56 |
It is recommended that compilefonts be invoked in the background as |
| 57 |
the process can be lengthy (15 minutes on a Sun IPC). To do this, |
| 58 |
type "compilefonts &" at your Unix shell prompt. |