1AFMTODIT(1)                 General Commands Manual                AFMTODIT(1)
2
3
4

NAME

6       afmtodit - create font files for use with groff -Tps and -Tpdf
7

SYNOPSIS

9       afmtodit [-ckmnsvx] [-a n] [-d desc_file] [-e enc_file] [-f inter‐
10                nal_name] [-i n] [-o out_file] afm_file map_file font
11
12       The whitespace between a  command  line  option  and  its  argument  is
13       optional.
14

DESCRIPTION

16       afmtodit  creates  a  font  file for use with groff, grops, and gropdf.
17       afmtodit is written in perl; you must have perl version 5.004 or  newer
18       installed in order to run afmtodit.
19
20       afm_file is the AFM (Adobe Font Metric) file for the font.
21
22       map_file  is a file that says which groff character names map onto each
23       PostScript character name; this file should contain a sequence of lines
24       of the form
25
26              ps_char groff_char
27
28       where ps_char is the PostScript name of the character and groff_char is
29       the groff name of the character (as used in the groff font file).   The
30       same ps_char can occur multiple times in the file; each groff_char must
31       occur at most once.  Lines starting with # and blank lines are ignored.
32       If the file isn't found in the current directory, it is searched in the
33       `devps/generate' subdirectory of the default font directory.
34
35       If a PostScript character is not mentioned in map_file, and  a  generic
36       groff  glyph  name  can't  be  deduced using the Adobe Glyph List (AGL,
37       built into afmtodit), then afmtodit puts the PostScript character  into
38       the  groff font file as an unnamed character which can only be accessed
39       by the \N escape sequence in troff.  In particular, this  is  true  for
40       glyph  variants  like `foo.bar'; all glyph names containing one or more
41       periods are mapped to unnamed entities.  If option -e is not specified,
42       the  encoding  defined in the AFM file (i.e., entries with non-negative
43       character codes) is used.  Please refer to section `Using  Symbols'  in
44       the  groff  info  file  which  describes how groff glyph names are con‐
45       structed.
46
47       Characters not encoded in the AFM file (i.e., entries which have -1  as
48       the  character code) are still available in groff; they get glyph index
49       values greater than 255 (or greater than  the  biggest  character  code
50       used  in the AFM file in the unlikely case that it is greater than 255)
51       in the groff font file.  Glyph indices of  unencoded  characters  don't
52       have a specific order; it is best to access them with glyph names only.
53
54       The groff font file will be output to a file called font, unless the -o
55       option is used.
56
57       If there is a downloadable font file for the font, it may be listed  in
58       the file /usr/share/groff/1.22.2/font/devps/download; see grops(1).
59
60       If  the  -i  option  is  used,  afmtodit will automatically generate an
61       italic correction, a left italic correction and a subscript  correction
62       for  each  character (the significance of these parameters is explained
63       in groff_font(5)); these parameters may  be  specified  for  individual
64       characters by adding to the afm_file lines of the form:
65
66              italicCorrection ps_char n
67              leftItalicCorrection ps_char n
68              subscriptCorrection ps_char n
69
70       where  ps_char  is  the  PostScript name of the character, and n is the
71       desired value of the corresponding parameter in thousandths of  an  em.
72       These  parameters  are  normally  needed  only  for italic (or oblique)
73       fonts.
74

OPTIONS

76       -an    Use n as the slant parameter in the font file; this is  used  by
77              groff  in  the positioning of accents.  By default afmtodit uses
78              the negative of the ItalicAngle specified in the afm file;  with
79              true  italic fonts it is sometimes desirable to use a slant that
80              is less than this.  If you find that characters from  an  italic
81              font  have  accents  placed too far to the right over them, then
82              use the -a option to give the font a smaller slant.
83
84       -c     Include comments in the font file in order to  identify  the  PS
85              font.
86
87       -ddesc_file
88              The device description file is desc_file rather than the default
89              DESC.  If not found in the current directory, the `devps' subdi‐
90              rectory  of the default font directory is searched (this is true
91              for both the default device description file and  a  file  given
92              with option -d).
93
94       -eenc_file
95              The  PostScript  font  should  be  reencoded to use the encoding
96              described in enc_file.  The format of enc_file is  described  in
97              grops(1).   If  not  found in the current directory, the `devps'
98              subdirectory of the default font directory is searched.
99
100       -fname The internal name of the groff font is set to name.
101
102       -in    Generate an italic correction for each  character  so  that  the
103              character's  width  plus  the  character's  italic correction is
104              equal to n thousandths of an em plus the  amount  by  which  the
105              right  edge  of  the character's bounding box is to the right of
106              the character's origin.  If this  would  result  in  a  negative
107              italic correction, use a zero italic correction instead.
108
109              Also generate a subscript correction equal to the product of the
110              tangent of the slant of the font and four fifths of the x-height
111              of  the  font.   If  this would result in a subscript correction
112              greater than the italic correction, use a  subscript  correction
113              equal to the italic correction instead.
114
115              Also  generate a left italic correction for each character equal
116              to n thousandths of an em plus the amount by which the left edge
117              of  the  character's  bounding box is to the left of the charac‐
118              ter's origin.  The left italic correction may be negative unless
119              option -m is given.
120
121              This  option  is  normally  needed only with italic (or oblique)
122              fonts.  The font files distributed with groff were created using
123              an option of -i50 for italic fonts.
124
125       -oout_file
126              The output file is out_file instead of font.
127
128       -k     Omit  any kerning data from the groff font.  This should be used
129              only for mono-spaced fonts.
130
131       -m     Prevent negative left  italic  correction  values.   Roman  font
132              files distributed with groff were created with -i0 -m to improve
133              spacing with eqn(1).
134
135       -n     Don't output a ligatures command for this font.  Use  this  with
136              constant-width fonts.
137
138       -s     The  font  is  special.  The effect of this option is to add the
139              special command to the font file.
140
141       -v     Print version.
142
143       -x     Don't use the built-in Adobe Glyph List.
144

FILES

146       /usr/share/groff/1.22.2/font/devps/DESC
147              Device description file.
148
149       /usr/share/groff/1.22.2/font/devps/F
150              Font description file for font F.
151
152       /usr/share/groff/1.22.2/font/devps/download
153              List of downloadable fonts.
154
155       /usr/share/groff/1.22.2/font/devps/text.enc
156              Encoding used for text fonts.
157
158       /usr/share/groff/1.22.2/font/devps/generate/textmap
159              Standard mapping.
160

SEE ALSO

162       groff(1), grops(1), groff_font(5), perl(1)
163
164       The groff info file, section `Using Symbols'.
165
166
167
168Groff Version 1.22.2            7 February 2013                    AFMTODIT(1)
Impressum