This is a nice interface to the gFONT program which can be found at
http://www.engelschall.com/sw/gfont/. It provides a <gfont> tag
which can be used similar to the standard HTML tag <font>. But
instead of online rendering by the webbrowser the text is rendered offline via
gfont into a GIF image. This has the following advantages:
you can use any TeX-available fonts instead of the commonly known ones the
typical browsers support. These fonts will actually look like you want, i.e.
Helvetica _is_ Helvetica with <gfont> while it can be Arial or a
totally different (substituted) font when using the <font> tag.
The standard <font> tag cannot use a different background color in
HTML 3.2, <gfont> can. Because it directly renders into a GIF image
which background has not to be transparent.
When an image is generated, a text file containing the command which has
been run is created, its name is the image file name with a .cmd
suffix. When WML is re-run, this file is searched for and gFONT
executed only if command line has changed.
Usually the created images for a source file page.wml are named
page.gfontXXX.gif where XXX is a number starting with 000. When you
use a base=foo attribute, then the resulting files are named
foo.gfontXXX.gif. Actually you can even use a complete filename including
a directory prefix, i.e. when you use base=../../common/foo attribute,
then the GIF images are created as ../../common/foo.gfontXXX.gif. Use this
feature to direct the images to a particular directory. Additionally using a
base="" attribute leads to images which are so-called hidden Unix files or
And for most flexibility when no base is specified and the variable
GFONT_BASE is defined (usually from within a .wmlrc file via
-DGFONT_BASE~path/to/gfont/dir/base) it is used. Use this feature to
redirect the created images to a particular directory.
You may also use the variable IMAGE_BASE which defines in a single line
all base names for images generated by WML.
This forces <gfont> to expand to nothing, i.e. no resulting
<img> tag. The image itself is still generated. In combination with
the above file attribute this can be used to generate images to particular
files which can be used at other positions, for instance inside
<rollover> (see wml::des::rollover(3)) tags.