1 .TH AFMTODIT @MAN1EXT@ "@MDATE@" "groff @VERSION@"
3 afmtodit \- create font files for use with groff \-Tps and \-Tpdf
6 .\" ====================================================================
8 .\" ====================================================================
10 .\" Copyright (C) 1989-2018 Free Software Foundation, Inc.
12 .\" Permission is granted to make and distribute verbatim copies of this
13 .\" manual provided the copyright notice and this permission notice are
14 .\" preserved on all copies.
16 .\" Permission is granted to copy and distribute modified versions of
17 .\" this manual under the conditions for verbatim copying, provided that
18 .\" the entire resulting derived work is distributed under the terms of
19 .\" a permission notice identical to this one.
21 .\" Permission is granted to copy and distribute translations of this
22 .\" manual into another language, under the above conditions for
23 .\" modified versions, except that this permission notice may be
24 .\" included in translations approved by the Free Software Foundation
25 .\" instead of in the original English.
28 .\" ====================================================================
30 .\" ====================================================================
50 .\" ====================================================================
52 .\" ====================================================================
55 creates a font file for use with
63 you must have Perl version 5.004 or newer installed in order to run
69 is the AFM (Adobe Font Metric) file for the font.
74 is a file that says which
76 character names map onto each PostScript character name;
77 this file should contain a sequence of lines of the form
86 is the PostScript name of the character and
88 is the groff name of the character (as used in the
94 can occur multiple times in the file;
97 must occur at most once.
99 Lines starting with \(oq#\(cq and blank lines are ignored.
101 If the file isn't found in the current directory,
102 it is searched for in the
104 subdirectory of the default font directory.
108 If a PostScript character is not mentioned in
112 glyph name can't be deduced using the Adobe Glyph List
117 puts the PostScript character into the
119 font file as an unnamed character which can only be accessed by the
120 \(oq\eN\(cq escape sequence in a
125 this is true for glyph variants named in the form \(lqfoo.bar\(rq;
126 all glyph names containing one or more periods are mapped to unnamed
131 is not specified, the encoding defined in the AFM file (i.e., entries
132 with non-negative character codes) is used.
134 Refer to section \(lqUsing Symbols\(rq in
135 .IR "Groff: The GNU Implementation of troff" ,
141 glyph names are constructed.
145 Characters not encoded in the AFM file (i.e., entries which have
146 \(oq\-1\(cq as the character code) are still available in
148 they get glyph index values greater than 255 (or greater than the
149 biggest character code used in the AFM file in the unlikely case that it
150 is greater than 255) in the
154 Glyph indices of unencoded characters don't have a specific order;
155 it is best to access them with glyph names only.
161 font file will be output to a file called
169 If there is a downloadable font file for the font, it may be listed in
171 .IR @FONTDIR@/\:devps/\:download ;
173 .IR grops (@MAN1EXT@).
181 will automatically generate an italic correction,
182 a left italic correction and a subscript correction
184 (the significance of these parameters is explained in
185 .IR groff_font (@MAN5EXT@));
186 these parameters may be specified for individual characters by
193 .BI italicCorrection \~ps-char\~n
194 .BI leftItalicCorrection \~ps-char\~n
195 .BI subscriptCorrection \~ps-char\~n
201 is the PostScript name of the character,
204 is the desired value of the corresponding parameter in thousandths of an
207 These parameters are normally needed only for italic (or oblique) fonts.
210 .\" ====================================================================
212 .\" ====================================================================
214 Whitespace is permitted between a command-line option and its argument.
221 as the slant parameter in the font file;
224 in the positioning of accents.
228 uses the negative of the
230 specified in the AFM file;
231 with true italic fonts it is sometimes desirable to use a slant that is
234 If you find that characters from an italic font have accents placed too
235 far to the right over them,
238 option to give the font a smaller slant.
243 Include comments in the font file in order to identify the PostScript
249 The device description file is
251 rather than the default
254 If not found in the current directory,
257 subdirectory of the default font directory is searched (this is true for
258 both the default device description file and a file given with option
264 The PostScript font should be reencoded to use the encoding described
271 .IR grops (@MAN1EXT@).
273 If not found in the current directory,
276 subdirectory of the default font directory is searched.
281 The internal name of the
289 Generate an italic correction for each character so that the
290 character's width plus the character's italic correction is equal to
293 plus the amount by which the right edge of the character's bounding box
294 is to the right of the character's origin.
296 If this would result in a negative italic correction, use a zero
297 italic correction instead.
301 Also generate a subscript correction equal to the
302 product of the tangent of the slant of the font and
303 four fifths of the x-height of the font.
305 If this would result in a subscript correction greater than the italic
306 correction, use a subscript correction equal to the italic correction
311 Also generate a left italic correction for each character
315 plus the amount by which the left edge of the character's bounding box
316 is to the left of the character's origin.
318 The left italic correction may be negative unless option
324 This option is normally needed only with italic (or oblique) fonts.
326 The font files distributed with
328 were created using an option of
343 Omit any kerning data from the
346 use only for monospaced (constant-width) fonts.
351 Prevent negative left italic correction values.
353 Roman font files distributed with
357 to improve spacing with
358 .IR @g@eqn (@MAN1EXT@).
365 command for this font;
366 use with monospaced (constant-width) fonts.
373 The effect of this option is to add the
375 command to the font file.
380 Print version and exit.
385 Don't use the built-in Adobe Glyph List.
388 .\" ====================================================================
390 .\" ====================================================================
393 .I @FONTDIR@/\:devps/\:DESC
394 Device description file.
398 .IR @FONTDIR@/\:devps/\: F
399 Font description file for font
404 .I @FONTDIR@/\:devps/\:download
405 List of downloadable fonts.
409 .I @FONTDIR@/\:devps/\:text.enc
410 Encoding used for text fonts.
414 .I @FONTDIR@/\:devps/\:generate/\:textmap
418 .\" ====================================================================
420 .\" ====================================================================
422 .IR "Groff: The GNU Implementation of troff" ,
423 by Trent A.\& Fisher and Werner Lemberg,
428 Section \(lqUsing Symbols\(rq may be of particular note.
430 You can browse it interactively with \(lqinfo \(aq(groff)Using
435 .IR groff (@MAN1EXT@),
436 .IR gropdf (@MAN1EXT@),
437 .IR grops (@MAN1EXT@),
438 .IR groff_font (@MAN5EXT@),
442 .\" ====================================================================
443 .\" ### Emacs settings:
448 .\" vim: set filetype=groff textwidth=72: