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 |
---|
26 | gsftopk \- 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 |
---|
35 | Name of the font to be created. |
---|
36 | .IP \fIdpi\fP |
---|
37 | Desired resolution of the font to be created, in dots per inch. This may |
---|
38 | be a real number. |
---|
39 | .SH DESCRIPTION |
---|
40 | .B gsftopk |
---|
41 | is a program which calls up the ghostscript program |
---|
42 | .BR gs (1) |
---|
43 | to render a given font at a given resolution. It packs the resulting |
---|
44 | characters into the |
---|
45 | .B pk |
---|
46 | file format and writes them to a file whose name is formed from the font |
---|
47 | name and the resolution (rounded to the nearest integer). |
---|
48 | .PP |
---|
49 | This program should normally be called by a script, such as |
---|
50 | #ifkpathsea |
---|
51 | .BR MakeTeXPK , |
---|
52 | #endif |
---|
53 | #ifnokpathsea |
---|
54 | .BR xdvimakepk , |
---|
55 | #endif |
---|
56 | to create fonts on demand. |
---|
57 | .PP |
---|
58 | .B gsftopk |
---|
59 | obtains the character widths from the |
---|
60 | .RI . tfm |
---|
61 | file, which must exist in the standard search path. It also must be |
---|
62 | able to find a file |
---|
63 | .B psfonts.map |
---|
64 | (formatted as in |
---|
65 | .BR dvips (1)), |
---|
66 | listing the available fonts. |
---|
67 | .PP |
---|
68 | The following |
---|
69 | .B pk |
---|
70 | "specials" are added at the end of the output file, to provide an internal |
---|
71 | check 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 """." |
---|
76 | This is in accordance with the TeX Directory Standard (TDS). |
---|
77 | .SH OPTIONS |
---|
78 | .TP |
---|
79 | .B \-q |
---|
80 | Operate quietly; |
---|
81 | .I i.e., |
---|
82 | without writing any messages to the standard output. |
---|
83 | .SH ENVIRONMENT VARIABLES |
---|
84 | .IP \fBTEXFONTS\fP \w'\fBDVIPSHEADERS\fP'u+2m |
---|
85 | Colon-separated list of directories to search for the |
---|
86 | .RI . tfm |
---|
87 | file associated with the font. An extra colon in the list will include the |
---|
88 | system default path at that point. A double slash will enable recursive |
---|
89 | subdirectory searching at that point in the path. |
---|
90 | .IP \fBDVIPSHEADERS\fP |
---|
91 | Colon-separated list of directories to search for the ghostscript |
---|
92 | driver file |
---|
93 | .B render.ps |
---|
94 | and for any PostScript font files |
---|
95 | .RI (. pfa |
---|
96 | or |
---|
97 | .RI . pfb |
---|
98 | files). An extra colon in the list behaves as with |
---|
99 | .SB TEXFONTS. |
---|
100 | .IP \fBTEXCONFIG\fP |
---|
101 | Path to search for the file |
---|
102 | .BR psfonts.map . |
---|
103 | Only the first such file will be used. |
---|
104 | .SH BUGS |
---|
105 | .B gsftopk |
---|
106 | sometimes has trouble with fonts with very complicated characters |
---|
107 | (such as the Seal of the University of California). This is because |
---|
108 | .B gsftopk |
---|
109 | uses the |
---|
110 | .B charpath |
---|
111 | operator to determine the bounding box of each character. If the character |
---|
112 | is too complicated, then old versions of |
---|
113 | .B ghostscript |
---|
114 | fail, causing |
---|
115 | .B gsftopk |
---|
116 | to 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 |
---|
121 | or a segmentation fault.) The best way to fix this bug is to install a |
---|
122 | current version of |
---|
123 | .BR ghostscript . |
---|
124 | As an alternative, |
---|
125 | .B gsftopk |
---|
126 | can be instructed to use the bounding box provided with the font (if one |
---|
127 | exists) instead of finding a bounding box for each character. To do this, |
---|
128 | include the string |
---|
129 | .IP |
---|
130 | .B /usefontbbox true def |
---|
131 | .LP |
---|
132 | in the |
---|
133 | .B psfonts.map |
---|
134 | file; |
---|
135 | .IR e.g. , |
---|
136 | .IP |
---|
137 | .B ucseal """/usefontbbox true def""" |
---|
138 | .LP |
---|
139 | This 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 |
---|
148 | Written by Paul Vojta. This program was inspired by |
---|
149 | .BR gsrenderfont , |
---|
150 | which was written by Karl Berry. |
---|
151 | #ifkpathsea |
---|
152 | .SH MODIFICATIONS |
---|
153 | Modified by Yves Arrouye to use Karl Berry's kpathsea library. |
---|
154 | #endif |
---|