TEST 2.9.0 92/07/06 -- some quick tests of a newly-compiled mff -*-text-*- Output from mff is occasionally given, between lines of hyphens, indented in a tab stop. Otherwise a quick description of what it is supposed to do is given. Hope this helps. Suggestions for usefully automating all this welcome. mff does nothing mff -V prints version number and exits mff -D Checks that it is successfully reading the startup files -- the Z table is set in /usr/local/lib/rc.mff. In this example, the local devices appear twice, because I ran mff in the source directory, and this has a copy of the /usr/local/lib/mff.rc file: ------------------------------------------------------------------------ mff: This is mff.c v2.8.1 -- pdc Fri. 28 June 1991 Z = { 118=bitgraph 300=CanonCX 118=bitgraph 300=CanonCX 200=lowres } W = {} C = {} I = {} J = {} template = { } DPI(s) = 300. mag(s) = 1. METAFONT = "mf" GFtoPK = "gfto%p" TFM dir. = "/mclab/pdc/tex/tfm" PK dir. = "/mclab/pdc/tex/%d%p" ------------------------------------------------------------------------ mff -f ditko -n dk76s30 Now we want to see if it interpreting those tables reasonably. This ought to produce the following output (modulo linebreaks and different directory names): ------------------------------------------------------------------------ mf '\mode = CanonCX; mag = 1; font_size 30pt#; weight=1.25; hratio=1.00; slant=1/5; ; input dk; bye.' mv dk.tfm /mclab/pdc/tex/tfm/dk76s30.tfm gftopk dk.300gf mv dk.300pk /mclab/pdc/tex/pk/CanonCX/dk76s30.300pk rm dk.300gf ------------------------------------------------------------------------ You ought to be able to pipe this into /bin/sh to create the font! Now try the same command without the -n, which ought to run METAFONT (you will see METAFONT's output) as above to create the font. Voila! Now to try out some variations mff -fmflogo -nm -1,-h,0,h,1 mf55a10 This checks that mff is parsing lists of magsteps properly. I've deleted some of its output below for clarity. Note the GF numbers and values of mag. ------------------------------------------------------------------------ mf '\mode = CanonCX; mag = 0.833333; font_size 10pt#; input mf; bye.' ... rm mf.250gf mf '\mode = CanonCX; mag = 0.912871; font_size 10pt#; input mf; bye.' ... rm mf.274gf mf '\mode = CanonCX; mag = 1; font_size 10pt#; input mf; bye.' ... rm mf.300gf mf '\mode = CanonCX; mag = 1.09545; font_size 10pt#; input mf; bye.' ... rm mf.329gf mf '\mode = CanonCX; mag = 1.2; font_size 10pt#; input mf; bye.' ... rm mf.360gf ------------------------------------------------------------------------ mff -fmflogo -na 12,14,17 mf55a10 This verifies that the at-sizes feature is working reasonably. The numbers 1.2, 1.44 and 1.728 are numbers Knuth likes... :-) ------------------------------------------------------------------------ mf '\mode = CanonCX; mag = 1.2; font_size 10pt#; input mf; bye.' ... mf '\mode = CanonCX; mag = 1.44; font_size 10pt#; input mf; bye.' ... mf '\mode = CanonCX; mag = 1.728; font_size 10pt#; input mf; bye.' ... ------------------------------------------------------------------------ mff -n -P '' -T '' mf55a10 mff -n -P . -T . mf55a10 mff -n -P - -T - mf55a10 This is a test of whether it reacts sensibly to weird templates. As you might expect from the manual entry, the first two create fonts with appropriate names in the current directory, e.g.: ------------------------------------------------------------------------ mf '\mode = CanonCX; mag = 1; font_size 10pt#; input mf; bye.' -> mv mf.tfm mf10.tfm gftopk mf.300gf -> mv mf.300pk mf10.300pk rm mf.300gf ------------------------------------------------------------------------ The third of these omits the renaming altogether, leaving files like mf.tfm instead of mf55a10.tfm. This is also in accordance with the manual entry: ------------------------------------------------------------------------ mf '\mode = CanonCX; mag = 1; font_size 10pt#; input mf; bye.' gftopk mf.300gf rm mf.300gf ------------------------------------------------------------------------ mff -fmflogo -n -M '' mf55a10 mff -fmflogo -M '' mf55a10 mff -fmflogo -M - mf55a10 The first of these carries on as usual. The second form complains that the command string is empty. The third omits the METAFONTing stage, which is useful if you have the GF and TFM files and are too lazy to type the appropriate mv commands! mff -fmflogo -n -m '' mf55a10 mff -fmflogo -n -m a,b mf55a10 the first does nothing but print a warning -- it has been given a list of length zero. The gives a fatal syntax error. mff -vfmflogo -f- This puts mff into a sort of interactive mode. Type font names (like mf55a10) to create them, and CTRL-D to finish.