1 .\" man page for ttf2pk
3 .TH TTF2PK 1 15-Aug-1999 "FreeType version 1.3"
5 ttf2pk \- convert a TrueType font into TeX's PK format
12 .I "\%font-name \%resolution"
28 .\" ==== macro definitions
31 .\" here we define \TeX for troff and nroff
32 .if t .ds TX \fRT\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X\fP
35 .\" and here the same for \LaTeX
38 .ds LX \fRL\h'-0.36m'\v'-0.15v'\s-3A\s0\h'-0.15m'\v'0.15v'\fP\*(TX
39 .el .ds LX \fRL\h'-0.36m'\v'-0.22v'\s-2A\s0\h'-0.15m'\v'0.22v'\fP\*(TX
44 .\" note that we need \vareps for TeX instead of \eps which can only be
45 .\" accessed with the \N escape sequence (in the Math Italic font)
47 .ie '\*(.T'dvi' .ds LE \*(LX\h'0.15m'2\v'0.20v'\f(MI\N'34'\fP\v'-0.20v'
48 .el .ds LE \*(LX\h'0.15m'2\v'0.20v'\(*e\v'-0.20v'
50 .if n .ds LE LaTeX\ 2e
65 .\" ==== end of macro definitions
71 This program converts a TrueType font into a
73 file; the created font can then be used with \*(TX
76 All TrueType fonts to be used must be registered in a configuration
79 it specifies how to handle each font.
80 CJKV (Chinese/Japanese/Korean/old Vietnamese) subfonts as created by
85 always assumes 10pt as the design size for the written \*(TX
92 This optional switch makes
95 It suppresses any informational output except warning and error
101 as the extension instead of `\c
103 .RI < \%resolution >\c
107 Test for the existence of
109 Returns 0 on success and prints out the corresponding line in
119 looks this name up in a configuration file called
121 for further information how to process the font.
124 The resolution, given in dots per inch.
125 Currently the horizontal resolution is equal to the vertical
127 The design size is always assumed to be 10pt.
130 Shows the current version of
132 and the used file search library (e.g.\ \c
136 Shows usage information.
138 Environment variables for file searching are described in the manual page
143 .SH "THE CONFIGURATION FILE"
147 a font definition file called
149 The parameters specified to
151 are here preserved\(em\c
153 writes out to standard output, as the last line, a proper
154 configuration entry for
157 As an example, a call to
160 .C "ttf2tfm arial -p T1.enc -s 0.25 -P 1 -E 0 arials"
162 will produce the following line:
165 .C "arials arial Slant=0.25 Pid=1 Eid=0 Encoding=T1.enc"
173 package for a detailed description of encoding files.
175 Here a table listing the various
177 parameters and the corresponding
205 Single replacement glyph names given to
208 .BI -r \ old-glyphname\ new-glyphname\c
210 are directly specified with `\c
211 .IR old-glyphname = new-glyphname '.
212 They will be ignored if in subfont mode or if no encoding file is given.
214 One additional parameter in
218 `Hinting', which can take the values `On' or `Off'.
219 Some fonts (e.g.\ the CJK part of
221 are rendered incorrectly if hinting is activated.
222 Default is `On' (you can also use `Yes', `No', `1', and `0').
224 For a description of subfonts (i.e., entries of the form `\c
235 Each line defines a font; first comes the \*(TX
236 font name, then its TrueType font file name, followed by the
237 parameters in any order.
238 Case is significant (even for parameter names); the parameters are
239 separated from its values by an equal sign, with whitespace possibly
244 line by line, continuing until the \*(TX
245 font specified on the command line is found, otherwise the programs
246 exits with error code\ 2.
247 Thus you can use any character invalid in a \*(TX
248 font name to start a comment line.
250 You can use `\\' as the final character of a line to indicate that the
251 input is continued on the next line.
252 The backslash and the following newline character will be removed.
255 will abort if it can't find or read the \*(TX
256 font metrics file of the given \*(TX
261 If the call was successful, 0\ will be returned.
262 In case of error, the return value is\ 1.
263 Finally, if the font can't be found in
266 This simplifies the inclusion of
270 for automatic font generation.
280 is part of the FreeType package, a high quality TrueType rendering