Copyright (C) 2000-2012 |
Manpages GSFTOPKSection: User Commands (1)Updated: 28 November 1998 Index Return to Main Contents NAMEgsftopk - render a ghostscript font in TeX pk formatSYNOPSISgsftopk [-i path] [-q] [-t] [--debug=n] [--dosnames] [--interpreter=path] [--mapline=line] [--mapfile=file] [--quiet] [--test] [--help] [--version] font dpiARGUMENTS
DESCRIPTIONgsftopk is a program which calls up the ghostscript program gs(1) to render a given font at a given resolution. It packs the resulting characters into the pk file format and writes them to a file whose name is formed from the font name and the resolution (rounded to the nearest integer). The font may be in any format acceptable to Ghostscript, including .pfa, .pfb, .gsf, and .ttf files.This program should normally be called by a script, such as mktexpk, to create fonts on demand. gsftopk obtains the character widths from the .tfm file, which must exist in the standard search path. It also must be able to find the font in a map file (such as psfonts.map), formatted as in dvips(1)), unless the --mapline option is used. The set of map files is given by the --mapfile option, or in the files config.ps, $HOME/.dvipsrc, and config.gsftopk (as would be used by dvips -Pgsftopk). The following pk "specials" are added at the end of the output file, to provide an internal check on the contents of the file: "jobname=font", "mag=1", "mode=modeless", and "pixels_per_inch=dpi". This is in accordance with the TeX Directory Standard (TDS). OPTIONS
ENVIRONMENT VARIABLES
CONFIGURATIONIn order to determine the set of map files to be used and the path for finding PostScript files, gsftopk reads, in order, the files config.ps, .dvipsrc, and config.gsftopk. The files config.ps and config.gsftopk are searched for using the environment variable TEXCONFIG, the Kpathsea configuration file, or the compiled-in default paths. The file .dvipsrc is searched for in the user's home directory.These files are in the same format as for dvips (as well as being in the same locations). The entries used by gsftopk are as follows.
All other entries are ignored. This is similar to the handling of these options when running dvips -Pgsftopk. For more details, see the Kpathsea manual. BUGSgsftopk sometimes has trouble with fonts with very complicated characters (such as the Seal of the University of California). This is because gsftopk uses the charpath operator to determine the bounding box of each character. If the character is too complicated, then old versions of Ghostscript fail, causing gsftopk to terminate with an error message
(The number may vary from system to system; it corresponds to a bus error or a segmentation fault.) The best way to fix this bug is to install a current version of ghostscript. As an alternative, gsftopk can be instructed to use the bounding box provided with the font (if one exists) instead of finding a bounding box for each character. To do this, include the string
in the font map file; e.g.,
This will not affect use of the font by dvips. SEE ALSOgs(1), gftopk(1), tex(1), xdvi(1), dvips(1)AUTHORWritten by Paul Vojta. This program was inspired by Karl Berry's gsrenderfont.MODIFICATIONSModified by Yves Arrouye to use Karl Berry's Kpathsea library.
Index
This document was created by man2html, using the manual pages. Time: 21:03:00 GMT, November 11, 2024 |