version 2 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
PS2PK |
|
|
2 |
!!!PS2PK |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
ACKNOWLEDGEMENT |
|
|
7 |
SEE ALSO |
|
|
8 |
VERSION |
|
|
9 |
AUTHOR |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
ps2pk - creates a TeX pkfont from a type1 !PostScript font |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
pk2pk [[ ''options''] type1 [[pkfont] |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
options: -v -e''enc'' -X''xres'' -E''expansion'' |
|
|
22 |
-S''slant'' |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
options: -P''pointsize'' -R''baseres'' |
|
|
26 |
-r''aspectratio'' |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
options: -Y''yres'' -a''AFMfile'' |
|
|
30 |
-m''modename'' |
|
|
31 |
!!DESCRIPTION |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
This program renders a given type1 !PostScript font at a |
|
|
35 |
given pointsize (default 10.0 points) and resolution |
|
|
36 |
(default 300dpi) into a TeX pkfont. |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
To generate the pkfont pk2ps needs a valid type1 fontname |
|
|
40 |
(for example Utopia-Regular, Utopia-Regula.pfb or |
|
|
41 |
Utopia-Regula.pfa) and its corresponding AFM-file |
|
|
42 |
(Utopia-Regular.afm). The program accepts both the MSDOS |
|
|
43 |
binary type1 format (Utopia-Regula.pfb) and its ASCII |
|
|
44 |
equivalent (Utopia-Regular or Utopia-Regula.pfa). To locate |
|
|
45 |
the type1 font and its AFM-file ps2pk will use the |
|
|
46 |
environment T1INPUTS if it is set otherwise its built in |
|
|
47 |
default (the -v flag will report which filenames are looked |
|
|
48 |
for). |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
The program will make a pkfont in which the character codes |
|
|
52 |
are derived from their AFM (Adobe Font Metrics) defined |
|
|
53 |
values. This can be overruled by specifying an explicit |
|
|
54 |
encoding file via the -e option. The encoding file |
|
|
55 |
''enc'' should contain a valid !PostScript encoding |
|
|
56 |
containing !PostScript names like /hyphen. Here is an |
|
|
57 |
incomplete example (see afm2tfm for complete |
|
|
58 |
syntax): |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
% This is the EC encoding. |
|
|
62 |
/ECEncoding [[ % now 256 chars follow |
|
|
63 |
% 0x00 |
|
|
64 |
/grave /acute /circumflex /tilde /dieresis /hungarumlaut |
|
|
65 |
/ring /caron /breve /macron /dotaccent /cedilla |
|
|
66 |
/ogonek /quotesinglbase /guilsinglleft /guilsinglright |
|
|
67 |
(Rest of lines omitted.) |
|
|
68 |
% 0xF0 |
|
|
69 |
/eth /ntilde /ograve /oacute /ocircumflex /otilde |
|
|
70 |
/odieresis /oe /oslash /ugrave /uacute /ucircumflex |
|
|
71 |
/udieresis /yacute /thorn /germandbls ] def |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
Options and arguments: |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
-a''AFMfile'' |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
Overrules the name that is used to locate the AFM |
|
|
81 |
file. |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
-e''enc'' |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
Name of a file containing an encoding scheme (default - the |
|
|
88 |
encoding named in the AFM-file is used). The actual |
|
|
89 |
!PostScript name of the encoding scheme is written as a |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
-E''extension'' |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
The extension factor (real value, default 1.0). |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
-m''modename'' |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
A modename such as would be used by METAFONT (default |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
-P''pointsize'' |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
The desired pointsize (real value, default 10.0 |
|
|
108 |
points). |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
-R''baseres'' |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
The desired base resolution (integer value, default 300 |
|
|
115 |
dpi). If this differs from the value of ''xres'', the |
|
|
116 |
appropriate magnification will be shown in the |
|
|
117 |
''xres'' of 329, |
|
|
118 |
using the default base resolution of 300, will include the |
|
|
119 |
'' |
|
|
120 |
|
|
|
121 |
|
|
|
122 |
-r''aspectratio'' |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
The desired aspect ratio (expression, integerY/integerX, |
|
|
126 |
default 300/300). This will be shown in the |
|
|
127 |
yres'' but an explicit |
|
|
128 |
''yres'' value will take precedence. Argument must be in |
|
|
129 |
'' |
|
|
130 |
|
|
|
131 |
|
|
|
132 |
-S''slant'' |
|
|
133 |
|
|
|
134 |
|
|
|
135 |
The slant (real value, default 0.0). |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
-X''xres'' |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
The resolution in the X direction (integer value, default |
|
|
142 |
300 dpi). |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
-Y''yres'' |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
The resolution in the Y direction (integer value, default |
|
|
149 |
the value of ''xres''). If ''yres'' differs from |
|
|
150 |
''xres'', a |
|
|
151 |
'' |
|
|
152 |
|
|
|
153 |
|
|
|
154 |
-v Verbose flag. (Tells what the program is |
|
|
155 |
doing.) |
|
|
156 |
|
|
|
157 |
|
|
|
158 |
type1 |
|
|
159 |
|
|
|
160 |
|
|
|
161 |
The name of the !PostScript type1 font. The name of the |
|
|
162 |
AFM-file will be constructed from this name by removing the |
|
|
163 |
extension (if suplied) and adding |
|
|
164 |
|
|
|
165 |
|
|
|
166 |
[[pkfont] |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
The name of the resulting pkfont can be overruled with this |
|
|
170 |
name. The default name of pkfont is derived from the |
|
|
171 |
basename of the type1 font, the pointsize and ''xres''. |
|
|
172 |
For example `ps2pk -P17.28 Utopia-Regular' will result in |
|
|
173 |
`Utopia-Regular17.300pk'. An explicit value for the name of |
|
|
174 |
the pkfont is necessary when the type1 font name already |
|
|
175 |
shows the point size, otherwise the ''pointsize'' value |
|
|
176 |
is catenated on to the pkfont basename which is usually not |
|
|
177 |
what is wanted. |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
The following PK |
|
|
181 |
!FontName'' |
|
|
182 |
''Encoding'' |
|
|
183 |
''modename'' |
|
|
184 |
'' |
|
|
185 |
!!ACKNOWLEDGEMENT |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
This program uses the type1 hinting and rendering software |
|
|
189 |
IBM has donated to the X-consortium. |
|
|
190 |
!!SEE ALSO |
|
|
191 |
|
|
|
192 |
|
|
|
193 |
`METAFONT: The Program', Donald Knuth. |
|
|
194 |
`The GFtoPK processor', belonging to the METAFONTware. |
|
|
195 |
`Adobe Font Metric Files', Version 3.0, !PostScript Developer |
|
|
196 |
Support Group. |
|
|
197 |
afm2tfm(1) |
|
|
198 |
pk2bm(1) |
|
|
199 |
!!VERSION |
|
|
200 |
|
|
|
201 |
|
|
|
202 |
1.1 (May 1992) |
|
|
203 |
!!AUTHOR |
|
|
204 |
|
|
|
205 |
|
|
|
206 |
Piet Tutelaers |
|
|
207 |
rcpt@urc.tue.nl |
|
|
208 |
modified for ps2pkm |
|
|
209 |
by Pierre A. Mackay |
|
|
210 |
mackay@cs.washington.edu |
|
|
211 |
---- |