Debian Codegraph @

texk/gsftopk/gsftopk1.sed

raw
1 .\" Copyright (c) 1993-1998 Paul Vojta
2 .\"
3 .\" Permission is hereby granted, free of charge, to any person obtaining a copy
4 .\" of this software and associated documentation files (the "Software"), to
5 .\" deal in the Software without restriction, including without limitation the
6 .\" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 .\" sell copies of the Software, and to permit persons to whom the Software is
8 .\" furnished to do so, subject to the following conditions:
9 .\"
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
12 .\"
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 .\" PAUL VOJTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 .\" IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 .\" CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 .\"
20
21 .\" small and boldface (not all -man's provide it)
22 .de SB
23 \&\fB\s-1\&\\$1 \\$2\s0\fR
24 ..
25 .TH GSFTOPK 1 "28 November 1998"
26 .SH NAME
27 gsftopk \- render a ghostscript font in TeX pk form
28 .SH SYNOPSIS
29 .B gsftopk
30 [\-i \fIpath\fP]
31 [\-q]
32 [\-t]
33 #ifkpathsea
34 [\-\-debug=\fIn\fP]
35 #endif
36 [\-\-dosnames]
37 [\-\-interpreter=\fIpath\fP]
38 [\-\-mapline=\fIline\fP]
39 [\-\-mapfile=\fIfile\fP]
40 [\-\-quiet]
41 [\-\-test]
42 [\-\-help]
43 [\-\-version]
44 .I font
45 .I dpi
46 .SH ARGUMENTS
47 .IP \fIfont\fP \w'\fIfont\fP'u+2m
48 Name of the font to be created.
49 .IP \fIdpi\fP
50 Desired resolution of the font to be created, in dots per inch. This may
51 be a real number.
52 .SH DESCRIPTION
53 .B gsftopk
54 is a program which calls up the ghostscript program
55 .BR gs (1)
56 to render a given font at a given resolution. It packs the resulting
57 characters into the
58 .B pk
59 file format and writes them to a file whose name is formed from the font
60 name and the resolution (rounded to the nearest integer). The font may
61 be in any format acceptable to Ghostscript, including
62 .RI . pfa ,
63 .RI . pfb ,
64 .RI . gsf ,
65 and
66 .RI . ttf
67 files.
68 .PP
69 This program should normally be called by a script, such as
70 .BR mktexpk ,
71 to create fonts on demand.
72 .PP
73 .B gsftopk
74 obtains the character widths from the
75 .RI . tfm
76 file, which must exist in the standard search path. It also must be
77 able to find the font in a map file (such as
78 .BR psfonts.map ),
79 formatted as in
80 .BR dvips (1)),
81 unless the
82 .B \-\-mapline
83 option is used. The set of map files is given by the
84 .B \-\-mapfile
85 option, or in the files
86 .BR config.ps ,
87 .BR $HOME/.dvipsrc ,
88 and
89 .B config.gsftopk
90 (as would be used by
91 .BR "dvips -Pgsftopk" ).
92 .PP
93 The following
94 .B pk
95 "specials" are added at the end of the output file, to provide an internal
96 check on the contents of the file:
97 "\fBjobname=\fP\fIfont\fP",
98 "\fBmag=1\fP",
99 "\fBmode=modeless\fP", and
100 "\fBpixels_per_inch=\fP\fIdpi\fP".
101 This is in accordance with the TeX Directory Standard (TDS).
102 .SH OPTIONS
103 #ifkpathsea
104 .TP
105 .B \-\-debug=\fIn\fP
106 Set the
107 .B Kpathsea
108 debug flags according to the integer
109 .IR n .
110 #endif
111 .TP
112 .B \-\-dosnames
113 Use a name of the form
114 .IB font .pk
115 instead of
116 .IB font . dpi pk\fR.\fP
117 .TP
118 .B \-h\fR,\fP \-\-help
119 Print a brief help synopsis and exit.
120 .TP
121 .B \-i \fIpath\fP\fR,\fP \-\-interpreter=\fIpath\fP
122 Use
123 .I path
124 as the Ghostscript interpreter.
125 .TP
126 .B \-\-mapfile=\fIfile\fP
127 Use
128 .I file
129 to look for the map information for
130 .IR font .
131 This should be the full name of the file (in other words, no path searching
132 algorithms are applied).
133 .TP
134 .B \-\-mapline=\fIline\fP
135 Use
136 .I line
137 instead of looking for an entry in a map file.
138 The first word of
139 .I line
140 must match
141 .IR font .
142 .TP
143 .B \-q\fR,\fP \-\-quiet
144 Operate quietly; i.e., without writing any messages to the standard output.
145 .TP
146 .B \-t\fR,\fP \-\-test
147 Test run: return zero status if the font can be found in the map file(s),
148 and nonzero status if it cannot. If this option is specified, then the
149 .I dpi
150 argument is optional (since the font will not be generated).
151 .TP
152 .B \-v\fR,\fP \-\-version
153 Print the version number and exit.
154 .SH ENVIRONMENT VARIABLES
155 .IP \fBDVIPSRC\fP \w'\fBGSFTOPKHEADERS\fP'u+2m
156 Name of file to read instead of
157 .BR $HOME/.dvipsrc .
158 This should be the full name of the file (in other words, no path searching
159 algorithms are applied).
160 .IP \fBGSFTOPKFONTS\fP
161 See
162 .SB TEXFONTS.
163 .IP \fBGSFTOPKHEADERS\fP
164 See
165 .SB TEXPSHEADERS.
166 .IP \fBPSHEADERS\fP
167 See
168 .SB TEXPSHEADERS.
169 .IP \fBTEXCONFIG\fP
170 Colon-separated list of paths to search for map files.
171 An extra colon in the list will include the
172 compiled-in default paths at that point. A double slash will enable recursive
173 subdirectory searching at that point in the path.
174 .IP \fBTEXFONTS\fP
175 Colon-separated list of paths to search for the
176 .RI . tfm
177 file associated with the font. Double slashes and extra colons behave as with
178 .SB TEXCONFIG.
179 This information may also be supplied by using the environment variables
180 .SB TFMFONTS
181 or
182 .SB GSFTOPKFONTS.
183 These environment variables are checked in the order
184 .SB GSFTOPKFONTS,
185 .SB TFMFONTS,
186 .SB TEXFONTS;
187 the first one (if any) having a value is used.
188 .IP \fBTEXPSHEADERS\fP
189 Colon-separated list of paths to search for the Ghostscript driver file
190 .B render.ps
191 and for any PostScript header or font files
192 .RI (. enc ,
193 .RI . pfa ,
194 .RI . pfb ,
195 .RI . gsf ,
196 or
197 .RI . ttf
198 files). Double slashes and extra colons behave as with
199 .SB TEXCONFIG.
200 This information may also be supplied by using the environment variables
201 .SB PSHEADERS
202 or
203 .SB GSFTOPKHEADERS.
204 These environment variables are checked in the order
205 .SB GSFTOPKHEADERS,
206 .SB TEXPSHEADERS,
207 .SB PSHEADERS;
208 the first one (if any) having a value is used.
209 .IP \fBTFMFONTS\fP
210 See
211 .SB TEXFONTS.
212 .SH CONFIGURATION
213 In order to determine the set of map files to be used and the path for
214 finding PostScript files,
215 .B gsftopk
216 reads, in order, the files
217 .BR config.ps ,
218 .BR .dvipsrc ,
219 and
220 .BR config.gsftopk .
221 The files
222 .B config.ps
223 and
224 .B config.gsftopk
225 are searched for using the environment variable
226 #ifnokpathsea
227 .SB TEXCONFIG
228 #endif
229 #ifkpathsea
230 .SB TEXCONFIG,
231 the
232 .B Kpathsea
233 configuration file,
234 #endif
235 or the compiled-in default paths. The file
236 .B .dvipsrc
237 is searched for in the user's home directory.
238 .PP
239 These files are in the same format as for
240 .B dvips
241 (as well as being in the same locations). The entries used by
242 .B gsftopk
243 are as follows.
244 .TP
245 .RI "H " path
246 Indicates that the Ghostscript driver file
247 .B render.ps
248 and the PostScript header and font files are to be searched for using
249 .IR path .
250 .TP
251 .RI "p " file
252 Indicates that the list of map files is to be erased and replaced by
253 .IR file .
254 .TP
255 .RI "p +" file
256 Indicates that
257 .I file
258 is to be added to the list of map files.
259 .PP
260 All other entries are ignored.
261 .PP
262 This is similar to the handling of these options when running
263 .BR "dvips -Pgsftopk" .
264 #ifkpathsea
265 For more details, see the
266 .B Kpathsea
267 manual.
268 #endif
269 .SH BUGS
270 .B gsftopk
271 sometimes has trouble with fonts with very complicated characters
272 (such as the Seal of the University of California). This is because
273 .B gsftopk
274 uses the
275 .B charpath
276 operator to determine the bounding box of each character. If the character
277 is too complicated, then old versions of Ghostscript fail, causing
278 .B gsftopk
279 to terminate with an error message
280 .IP
281 .B "Call to gs stopped by signal 10"
282 .LP
283 (The number may vary from system to system; it corresponds to a bus error
284 or a segmentation fault.) The best way to fix this bug is to install a
285 current version of ghostscript. As an alternative,
286 .B gsftopk
287 can be instructed to use the bounding box provided with the font (if one
288 exists) instead of finding a bounding box for each character. To do this,
289 include the string
290 .IP
291 .B /usefontbbox true def
292 .LP
293 in the font map file;
294 .IR e.g. ,
295 .IP
296 .B ucseal """/usefontbbox true def"""
297 .LP
298 This will not affect use of the font by
299 .BR dvips .
300 .SH SEE ALSO
301 .BR gs (1),
302 .BR gftopk (1),
303 .BR tex (1),
304 .BR xdvi (1),
305 .BR dvips (1)
306 .SH AUTHOR
307 Written by Paul Vojta. This program was inspired by Karl Berry's
308 .BR gsrenderfont .
309 #ifkpathsea
310 .SH MODIFICATIONS
311 Modified by Yves Arrouye to use Karl Berry's
312 .B Kpathsea
313 library.
314 #endif