The Web2c implementation of Metafont can do online graphics with a number of devices. (See the Metafont manual for more information about how to draw on your screen.) By default, no graphics support is enabled.
Metafont examines the MFTERM
environment variable or config file
value at runtime, or the TERM
environment variable if
MFTERM
is not set, to determine the device support to use.
Naturally, only the devices for which support has been compiled in can
be selected.
Here is a table of the possibilities, showing the MFTERM
value
and the corresponding configure
option(s) in parentheses.
hp2627
mftalk
next
DrawingServant
, available separately. See the
`web2c/window/next.c'.
regis
sun
gfx
system
by using `sun-gfx.c'.)
tek
uniterm
xterm
Metafont
. If you're using the Xt support, all the usual X toolkit
resources are supported. If you're using the Xlib support, only the
geometry
resource is supported.
You specify the X display to which Metafont connects in the
DISPLAY
environment variable, as usual.
Writing support for a new device is straightforward. Aside from defining the basic drawing routines that Metafont uses (see `mf.web'), you only have to add another entry to the tables on the last page of `web2c/lib/texmfmp.c'. Or you can write an independent program and use MFtalk (see `web2c/window/mftalk.c').
Go to the first, previous, next, last section, table of contents.