gsftopk - render a ghostscript font in TeX pk form
gsftopk [-i path] [-q] [-t] [--debug=n] [--dosnames] [--interpreter=path] [--mapline=line] [--mapfile=file] [--quiet] [--test] [--help] [--version] font dpi
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.
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 "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).
--debug=n
Set the Kpathsea debug flags according to the integer n.
--dosnames
Use a name of the form font.pk instead of font.dpipk.
-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.
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).
GSFTOPKFONTS See TFMFONTS.
GSFTOPKHEADERS See TEXPSHEADERS.
PSHEADERS See TEXPSHEADERS.
TEXCONFIG Colon-separated list of paths to search for map files.
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.
TFMFONTS Colon-separated list of paths to search for the .tfm
file associated with the font. Double slashes and
extra colons behave as with TEXCONFIG. This
information may also be supplied by using the
environment variables TFMFONTS or GSFTOPKFONTS. These
environment variables are checked in the order
GSFTOPKFONTS, TFMFONTS, TFMFONTS; the first one (if
any) having a value is used.
TEXPSHEADERS 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 TEXCONFIG. This information may also be
supplied by using the environment variables PSHEADERS
or GSFTOPKHEADERS. These environment variables are
checked in the order GSFTOPKHEADERS, TEXPSHEADERS,
PSHEADERS; the first one (if any) having a value is
used.
TFMFONTS See TFMFONTS.
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.
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 "/usefontbbox true def"
This will not affect use of the font by dvips.
gs(1), gftopk(1), tex(1), xdvi(1), dvips(1)
Written by Paul Vojta. This program was inspired by Karl Berry's gsrenderfont.
Modified by Yves Arrouye to use Karl Berry's Kpathsea library.
28 November 1998 GSFTOPK(1)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.