Next Up Previous Contents
Next: 3 Building and installing dvi2bitmap
Up: 2.5 Finding and generating fonts
Previous: 2.5.2 Not finding fonts
[ID index]

2.5.3 Generating fonts by hand

If you didn't enable automatic font-generation, or if you did and something went wrong, you might have to generate fonts by hand. You need to look at the documentation for your TEX system, specifically the mktexpk and MakeTeXPK scripts (one of which might be just an interface to the other).

See the discussion of the `make test' script in Section 2.5.1. Also, note that the option -Qg, given to dvi2bitmap, displays the font-generation commands which would be required to build the fonts missing from the specified DVI file. These are the commands which dvi2bitmap would employ to generate these fonts, when automatic-font-generation is enabled.

Since dvi2bitmap's default resolution is 72 dpi, as opposed to the usual printer resolution of 300 or 600 dpi, you are unlikely to have suitable fonts on your system, and will need to generate them. The program will generate these automatically, if it was configured with support for that (see Section 3.1); if it wasn't configured with that support, or if the automatic font generation fails, you might need to generate the fonts by hand.

How you generate fonts depends on your TEX distribution. As explained in Section 2.4, you can determine which fonts you need using the -Qf option. The teTeX and TeXLive TEX distributions include scripts to generate fonts for you; if you have a different distribution, there might be a similar script for you to use, or you might have to do it by hand. In the case of teTeX, the command you'd use in the example above would be:

% MakeTeXPK cmr10 165 110 1.5 ibmvga
This would generate fonts using the ibmvga Metafont mode, using a base resolution of 110 dpi (the default for that mode), at a magnification of 1.5 times, giving a resultant resolution of 165 dpi.

If you're using the TeXLive distribution, the equivalent command would be:

% mktexpk --mfmode ibmvga --mag 1.5 --bdpi 110 --dpi 165 cmr10

If you want to use the same mode as you use for printing documents, then the mode localfont should do the right thing. Otherwise, and probably better if these images are intended for the screen rather than paper, you could use a more specialised mode such as ibmvga, which has been tweaked to be readable at small resolutions. See the file modes.mf somewhere in your metafont distribution for the list of possibilities.

After you have created the fonts, try giving the command

% kpsewhich pk cmr10.165pk
to confirm that TEX and friends can find the new fonts, and that your dvi2bitmap environment variable is set correctly. This command is part of the kpathsea distribution, rather than the core TEX distribution, so may not be present on your system.


Next Up Previous Contents
Next: 3 Building and installing dvi2bitmap
Up: 2.5 Finding and generating fonts
Previous: 2.5.2 Not finding fonts
[ID index]
Dvi2bitmap - convert DVI files to bitmap images
Starlink System Note 71
Norman Gray
14 June 1999. Release 0.9-6. Last updated 12 January 2001