Setting the Metafont mode
To be able to build a PK file,
needs to know what mode to use.
gets this information from a configuration file:
the printer and viewing resolutions each have an extra string parameter that
is simply passed on to
.
WARNING: The given strings must exactly match known mode_def
values
defined in the file modes.mf which is kept in the mfinputs
sub-folder of the Metafont folder.
It is also important to make sure that a given resolution value matches the
pixels_per_inch
value in the corresponding mode_def
,
otherwise
won't create a suitable PK file.
The Default config file sets both modes to laserwriter.
You might need to change these modes, either by selecting one of the
supplied config files (StyleWriter, ImageWriter or Linotronic), or by editing the Default config file.
If a mode string is empty (""
) then
will use the localfont
mode which is currently equivalent to the laserwriter mode.
Common modes for users are
laserwriter, stylewriter, imagewriter and linohi.
If none of these modes suit your particular printer then look in
modes.mf to see if there is a suitable definition. The most important
thing to look for is a pixels_per_inch
value that matches the resolution
of your printer. If you can't find a matching mode_def
(unlikely), you
will have to create your own and run inimf to build a new mf.base file.
See Readme.mf in the Metafont folder for details.
NOTE:
I've set the stylewriter mode_def
parameters in modes.mf
to be the the same as the laserwriter parameters
(except for pixels_per_inch
of course).
This was done so that both modes can share the same set of PK files.
People who are fussy about their pixels (or with better eyesight than me)
might want to optimize the stylewriter parameters for that printer.