source: trunk/third/tex/xdvi/gsftopk/gsftopk1.sed @ 12209

Revision 12209, 4.8 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12208, which included commits to RCS files with non-trunk default branches.
Line 
1.\" Copyright (c) 1997 Paul Vojta.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\"    notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright
9.\"    notice, this list of conditions and the following disclaimer in the
10.\"    documentation and/or other materials provided with the distribution.
11.\"
12.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22.\" SUCH DAMAGE.
23.\"
24.TH GSFTOPK 1 "18 January 1997"
25.SH NAME
26gsftopk \- render a ghostscript font in TeX pk format
27'       # small and boldface (not all -man's provide it)
28.de SB
29\&\fB\s-1\&\\$1 \\$2\s0\fR
30..
31.SH SYNOPSIS
32\fBgsftopk\fP [\fB\-q\fP] \fIfont\fP \fIdpi\fP
33.SH ARGUMENTS
34.IP \fIfont\fP \w'\fIfont\fP'u+2m
35Name of the font to be created.
36.IP \fIdpi\fP
37Desired resolution of the font to be created, in dots per inch.  This may
38be a real number.
39.SH DESCRIPTION
40.B gsftopk
41is a program which calls up the ghostscript program
42.BR gs (1)
43to render a given font at a given resolution.  It packs the resulting
44characters into the
45.B pk
46file format and writes them to a file whose name is formed from the font
47name and the resolution (rounded to the nearest integer).
48.PP
49This program should normally be called by a script, such as
50#ifkpathsea
51.BR MakeTeXPK ,
52#endif
53#ifnokpathsea
54.BR xdvimakepk ,
55#endif
56to create fonts on demand.
57.PP
58.B gsftopk
59obtains the character widths from the
60.RI . tfm
61file, which must exist in the standard search path.  It also must be
62able to find a file
63.B psfonts.map
64(formatted as in
65.BR dvips (1)),
66listing the available fonts.
67.PP
68The following
69.B pk
70"specials" are added at the end of the output file, to provide an internal
71check on the contents of the file:
72.RB """" "jobname=\fIfont\fP" ""","
73.RB """" mag=1 ""","
74.RB """" mode=(gsftopk)Unknown ""","
75.RB """" pixels_per_inch=\fIdpi\fP """."
76This is in accordance with the TeX Directory Standard (TDS).
77.SH OPTIONS
78.TP
79.B \-q
80Operate quietly;
81.I i.e.,
82without writing any messages to the standard output.
83.SH ENVIRONMENT VARIABLES
84.IP \fBTEXFONTS\fP \w'\fBDVIPSHEADERS\fP'u+2m
85Colon-separated list of directories to search for the
86.RI . tfm
87file associated with the font.  An extra colon in the list will include the
88system default path at that point.  A double slash will enable recursive
89subdirectory searching at that point in the path.
90.IP \fBDVIPSHEADERS\fP
91Colon-separated list of directories to search for the ghostscript
92driver file
93.B render.ps
94and for any PostScript font files
95.RI (. pfa
96or
97.RI . pfb
98files).  An extra colon in the list behaves as with
99.SB TEXFONTS.
100.IP \fBTEXCONFIG\fP
101Path to search for the file
102.BR psfonts.map .
103Only the first such file will be used.
104.SH BUGS
105.B gsftopk
106sometimes has trouble with fonts with very complicated characters
107(such as the Seal of the University of California).  This is because
108.B gsftopk
109uses the
110.B charpath
111operator to determine the bounding box of each character.  If the character
112is too complicated, then old versions of
113.B ghostscript
114fail, causing
115.B gsftopk
116to terminate with an error message
117.IP
118.B "Call to gs stopped by signal 10"
119.LP
120(The number may vary from system to system; it corresponds to a bus error
121or a segmentation fault.)  The best way to fix this bug is to install a
122current version of
123.BR ghostscript .
124As an alternative,
125.B gsftopk
126can be instructed to use the bounding box provided with the font (if one
127exists) instead of finding a bounding box for each character.  To do this,
128include the string
129.IP
130.B /usefontbbox true def
131.LP
132in the
133.B psfonts.map
134file;
135.IR e.g. ,
136.IP
137.B ucseal """/usefontbbox true def"""
138.LP
139This will not affect use of the font by
140.BR dvips .
141.SH SEE ALSO
142.BR gs (1),
143.BR gftopk (1),
144.BR tex (1),
145.BR xdvi (1),
146.BR dvips (1)
147.SH AUTHOR
148Written by Paul Vojta.  This program was inspired by
149.BR gsrenderfont ,
150which was written by Karl Berry.
151#ifkpathsea
152.SH MODIFICATIONS
153Modified by Yves Arrouye to use Karl Berry's kpathsea library.
154#endif
Note: See TracBrowser for help on using the repository browser.