2 Copyright (C) 1989-2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
4 Permission is granted to make and distribute verbatim copies of
5 this manual provided the copyright notice and this permission notice
6 are preserved on all copies.
8 Permission is granted to copy and distribute modified versions of this
9 manual under the conditions for verbatim copying, provided that the
10 entire resulting derived work is distributed under the terms of a
11 permission notice identical to this one.
13 Permission is granted to copy and distribute translations of this
14 manual into another language, under the above conditions for modified
15 versions, except that this permission notice may be included in
16 translations approved by the Free Software Foundation instead of in
21 .\" Like TP, but if specified indent is more than half
22 .\" the current line-length - indent, use the default indent.
24 . ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
29 . ie \\n(.$-1 .RI "[\ \fB\\$1\fP\ " "\\$2" "\ ]"
30 . el .RB "[\ " "\\$1" "\ ]"
34 .TH AFMTODIT @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
38 afmtodit \- create font files for use with groff \-Tps
45 .in +\w'\fBafmtodit 'u
60 The whitespace between an command line option and its argument is optional.
64 creates a font file for use with groff and
69 you must have perl version 5.004 or newer installed in order to run
74 is the AFM (Adobe Font Metric) file for the font.
78 is a file that says which groff character names map onto
79 each PostScript character name;
80 this file should contain a sequence of lines of the form
87 is the PostScript name of the character
90 is the groff name of the character (as used in the groff font file).
94 can occur multiple times in the file;
97 must occur at most once.
101 and blank lines are ignored.
103 If the file isn't found in the current directory, it is searched in
104 the `devps/generate' subdirectory of the default font directory.
107 If a PostScript character is not named as
110 are four uppercase hexadecimal digits), and is not mentioned in
112 and a generic groff glyph name can't be deduced using the
113 Adobe Glyph List (AGL, built into
117 puts the PostScript character into the groff font file as an unnamed
118 character which can only be accessed by the
125 is not specified, the encoding defined in the AFM file (i.e., entries
126 with non-negative character codes) is used.
128 Please refer to section `Using Symbols' in the groff info file which
129 describes how groff glyph names are constructed.
132 Characters not encoded in the AFM file (i.e., entries which have \-1 as
133 the character code) are still available in groff; they get glyph index
134 values greater than 255 (or greater than the biggest character code used
135 in the AFM file in the unlikely case that it is greater than 255) in the
138 Glyph indices of unencoded characters don't have a specific order; it
139 is best to access them with glyph names only.
142 The groff font file will be output to a file called
146 If there is a downloadable font file for the font, it may be listed in
148 .BR @FONTDIR@/devps/download ;
150 .BR grops (@MAN1EXT@).
157 will automatically generate an italic correction,
158 a left italic correction and a subscript correction
160 (the significance of these parameters is explained in
161 .BR groff_font (@MAN5EXT@));
162 these parameters may be specified for individual characters by
167 .BI italicCorrection\ ps_char\ n
169 .BI leftItalicCorrection\ ps_char\ n
171 .BI subscriptCorrection\ ps_char\ n
175 is the PostScript name of the character,
178 is the desired value of the corresponding parameter in thousandths of an em.
180 These parameters are normally needed only for italic (or oblique) fonts.
188 as the slant parameter in the font file;
189 this is used by groff in the positioning of accents.
193 uses the negative of the ItalicAngle specified in the afm file;
194 with true italic fonts it is sometimes desirable to use
195 a slant that is less than this.
197 If you find that characters from an italic font have accents
198 placed too far to the right over them,
201 option to give the font a smaller slant.
205 The device description file is
207 rather than the default
210 If not found in the current directory, the `devps' subdirectory of the
211 default font directory is searched (this is true for both the default
212 device description file and a file given with option
217 The PostScript font should be reencoded to use the encoding described
223 .BR grops (@MAN1EXT@).
225 If not found in the current directory, the `devps' subdirectory of the
226 default font directory is searched.
230 Generate an italic correction for each character so that
231 the character's width plus the character's italic correction
235 plus the amount by which the right edge of the character's bounding box
236 is to the right of the character's origin.
238 If this would result in a negative italic correction, use a zero
239 italic correction instead.
242 Also generate a subscript correction equal to the
243 product of the tangent of the slant of the font and
244 four fifths of the x-height of the font.
246 If this would result in a subscript correction greater than the italic
247 correction, use a subscript correction equal to the italic correction
251 Also generate a left italic correction for each character
255 plus the amount by which the left edge of the character's bounding box
256 is to the left of the character's origin.
258 The left italic correction may be negative unless option
263 This option is normally needed only with italic (or oblique) fonts.
265 The font files distributed with groff were created using an option of
271 Prevent negative left italic correction values.
273 Roman font files distributed with groff were created with
275 to improve spacing with
276 .BR @g@eqn (@MAN1EXT@).
282 command for this font.
284 Use this with constant-width fonts.
290 The effect of this option is to add the
292 command to the font file.
300 Don't use the built-in Adobe Glyph List.
304 .Tp \w'\fB@FONTDIR@/devps/download'u+2n
305 .B @FONTDIR@/devps/DESC
306 Device description file.
309 .BI @FONTDIR@/devps/ F
310 Font description file for font
314 .B @FONTDIR@/devps/download
315 List of downloadable fonts.
318 .B @FONTDIR@/devps/text.enc
319 Encoding used for text fonts.
322 .B @FONTDIR@/devps/generate/textmap
327 .BR groff (@MAN1EXT@),
328 .BR grops (@MAN1EXT@),
329 .BR groff_font (@MAN5EXT@),
333 The groff info file, section `Using Symbols'.