Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
gsftopk(1)
Edit
PageHistory
Diff
Info
LikePages
GSFTOPK !!!GSFTOPK NAME SYNOPSIS ARGUMENTS DESCRIPTION OPTIONS ENVIRONMENT VARIABLES CONFIGURATION BUGS SEE ALSO AUTHOR MODIFICATIONS ---- !!NAME gsftopk - render a ghostscript font in TeX pk format !!SYNOPSIS __gsftopk__ [[-i ''path''] [[-q] [[-t] [[--debug=''n''] [[--dosnames] [[--interpreter=''path''] [[--mapline=''line''] [[--mapfile=''file''] [[--quiet] [[--test] [[--help] [[--version] ''font dpi'' !!ARGUMENTS ''font'' Name of the font to be created. ''dpi'' Desired resolution of the font to be created, in dots per inch. This may be a real number. !!DESCRIPTION __gsftopk__ 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__ __jobname=__''font'' ''mag=1____mode=modeless__ __pixels_per_inch=__''dpi'' '' !!OPTIONS __--debug=__''n'' Set the __Kpathsea__ debug flags according to the integer ''n''. __--dosnames__ Use a name of the form ''font''__.pk__ instead of ''font''__.__''dpi''__pk__. __-h__, __--help__ Print a brief help synopsis and exit. __-i__ ''path'', __--interpreter=__''path'' Use ''path'' as the Ghostscript interpreter. __--mapfile=__''file'' Use ''file'' to look for the map information for ''font''. This should be the full name of the file (in other words, no path searching algorithms are applied). __--mapline=__''line'' Use ''line'' instead of looking for an entry in a map file. The first word of ''line'' must match ''font''. __-q__, __--quiet__ Operate quietly; i.e., without writing any messages to the standard output. __-t__, __--test__ Test run: return zero status if the font can be found in the map file(s), and nonzero status if it cannot. If this option is specified, then the ''dpi'' argument is optional (since the font will not be generated). __-v__, __--version__ Print the version number and exit. !!ENVIRONMENT VARIABLES __TFMFONTS__ Colon-separated list of paths to search for the .''tfm'' file associated with the font. An extra colon in the list will include the compiled-in default paths at that point. A double slash will enable recursive subdirectory searching at that point in the path. __DVIPSHEADERS__ Colon-separated list of paths to search for the Ghostscript driver file __render.ps__ and for any !PostScript header or font files (.''enc'', .''pfa'', .''pfb'', .''gsf'', or .''ttf'' files). Double slashes and extra colons behave as with __TFMFONTS.__ __TEXCONFIG__ Colon-separated list of paths to search for map files. Double slashes and extra colons behave as with __TFMFONTS.__ __DVIPSRC__ Name of file to read instead of __$HOME/.dvipsrc__. This should be the full name of the file (in other words, no path searching algorithms are applied). !!CONFIGURATION In 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. H ''path'' Indicates that the Ghostscript driver file __render.ps__ and the !PostScript header and font files are to be searched for using ''path''. p ''file'' Indicates that the list of map files is to be erased and replaced by ''file''. p +''file'' Indicates that ''file'' is to be added to the list of map files. 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. !!BUGS __gsftopk__ 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 __Call to gs stopped by signal 10__ (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 __/usefontbbox true def__ in the font map file; ''e.g.'', __ucseal __ This will not affect use of the font by __dvips__. !!SEE ALSO gs(1), gftopk(1), tex(1), xdvi(1), dvips(1) !!AUTHOR Written by Paul Vojta. This program was inspired by Karl Berry's __gsrenderfont__. !!MODIFICATIONS Modified by Yves Arrouye to use Karl Berry's __Kpathsea__ library. ----
One page links to
gsftopk(1)
:
Man1g
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.