Sync-to-go: update copyright for 2015
[s-roff.git] / man / ute-afmtodit.1.in
blob1feea4428abe4f81b074afe70ec316c932fd0950
1 .ig
2 @ @L_AFMTODIT@.1
4 Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
6 Copyright (C) 1989 - 2003, 2005, 2006, 2008
7   Free Software Foundation, Inc.
9 Permission is granted to make and distribute verbatim copies of
10 this manual provided the copyright notice and this permission notice
11 are preserved on all copies.
13 Permission is granted to copy and distribute modified versions of this
14 manual under the conditions for verbatim copying, provided that the
15 entire resulting derived work is distributed under the terms of a
16 permission notice identical to this one.
18 Permission is granted to copy and distribute translations of this
19 manual into another language, under the above conditions for modified
20 versions, except that this permission notice may be included in
21 translations approved by the Free Software Foundation instead of in
22 the original English.
26 .\" Like TP, but if specified indent is more than half
27 .\" the current line-length - indent, use the default indent.
28 .de Tp
29 .  ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
30 .  el .TP "\\$1"
33 .de OP
34 .  ie \\n(.$-1 .RI "[\ \fB\\$1\fP\ " "\\$2" "\ ]"
35 .  el .RB "[\ " "\\$1" "\ ]"
39 .TH @U_AFMTODIT@ @MAN1EXT@ "@MDATE@" "@T_ROFF@ v@VERSION@"
42 .SH NAME
43 @L_AFMTODIT@ \- create font files for use with @L_ROFF@ \-Tps
46 .SH SYNOPSIS
47 .nr a \n(.j
48 .ad l
49 .nr i \n(.i
50 .in +\w'\fB@L_AFMTODIT@ 'u
51 .ti \niu
52 .B @L_AFMTODIT@
53 .OP \-ckmnsvx
54 .OP \-a n
55 .OP \-d desc_file
56 .OP \-e enc_file
57 .OP \-f internal_name
58 .OP \-i n
59 .I afm_file
60 .I map_file
61 .I font
62 .br
63 .ad \na
65 .LP
66 The whitespace between a command line option and its argument is optional.
68 .SH DESCRIPTION
69 .B @L_AFMTODIT@
70 creates a font file for use with @L_ROFF@ and
71 .BR @L_D_PS@ .
73 .B @L_AFMTODIT@
74 is written in perl;
75 you must have perl version 5.004 or newer installed in order to run it.
77 .LP
78 .I afm_file
79 is the AFM (Adobe Font Metric) file for the font.
81 .LP
82 .I map_file
83 is a file that says which groff character names map onto
84 each PostScript character name;
85 this file should contain a sequence of lines of the form
86 .IP
88 ps_char roff_char
89 .LP
90 where
91 .I ps_char
92 is the PostScript name of the character
93 and
94 .I roff_char
95 is the @L_ROFF@ name of the character (as used in the @L_ROFF@ font file).
97 The same
98 .I ps_char
99 can occur multiple times in the file;
100 each
101 .I roff_char
102 must occur at most once.
104 Lines starting with
105 .B #
106 and blank lines are ignored.
108 If the file isn't found in the current directory, it is searched in
109 the `dev-ps/generate' subdirectory of the default font directory.
112 If a PostScript character is not mentioned in
113 .IR map_file ,
114 and a generic @L_ROFF@ glyph name can't be deduced using the
115 Adobe Glyph List (AGL, built into
116 .BR @L_AFMTODIT@ ),
117 then
118 .B @L_AFMTODIT@
119 puts the PostScript character into the @L_ROFF@ font file as an unnamed
120 character which can only be accessed by the
121 .B \eN
122 escape sequence in
123 .BR @L_TROFF@ .
124 In particular, this is true for glyph variants like `foo.bar'; all glyph
125 names containing one or more periods are mapped to unnamed entities.
127 If option
128 .B \-e
129 is not specified, the encoding defined in the AFM file (i.e., entries
130 with non-negative character codes) is used.
132 Please refer to section `Using Symbols' in the @L_ROFF@ manual which
133 describes how groff glyph names are constructed.
136 Characters not encoded in the AFM file (i.e., entries which have \-1 as
137 the character code) are still available in @L_ROFF@; they get glyph index
138 values greater than 255 (or greater than the biggest character code used
139 in the AFM file in the unlikely case that it is greater than 255) in the
140 @L_ROFF@ font file.
142 Glyph indices of unencoded characters don't have a specific order; it
143 is best to access them with glyph names only.
146 The @L_ROFF@ font file will be output to a file called
147 .IR font .
150 If there is a downloadable font file for the font, it may be listed in
151 the file
152 .BR @FONTDIR@/dev-ps/download ;
154 .BR @L_D_PS@ (@MAN1EXT@).
157 If the
158 .B \-i
159 option is used,
160 .B @L_AFMTODIT@
161 will automatically generate an italic correction,
162 a left italic correction and a subscript correction
163 for each character
164 (the significance of these parameters is explained in
165 .BR @L_ROFF@_font (@MAN5EXT@));
166 these parameters may be specified for individual characters by
167 adding to the
168 .I afm_file
169 lines of the form:
171 .BI italicCorrection\  ps_char\ n
173 .BI leftItalicCorrection\  ps_char\ n
175 .BI subscriptCorrection\  ps_char\ n
177 where
178 .I ps_char
179 is the PostScript name of the character,
181 .I n
182 is the desired value of the corresponding parameter in thousandths of an em.
184 These parameters are normally needed only for italic (or oblique) fonts.
187 .SH OPTIONS
189 .BI \-a n
191 .I n
192 as the slant parameter in the font file;
193 this is used in the positioning of accents.
195 By default the negative of the ItalicAngle specified in the afm file is
196 used; with true italic fonts it is sometimes desirable to use
197 a slant that is less than this.
199 If you find that characters from an italic font have accents
200 placed too far to the right over them,
201 then use the
202 .B \-a
203 option to give the font a smaller slant.
206 .B \-c
207 Include comments in the font file in order to identify the PS font.
210 .BI \-d desc_file
211 The device description file is
212 .I desc_file
213 rather than the default
214 .BR DESC .
216 If not found in the current directory, the `dev-ps' subdirectory of the
217 default font directory is searched (this is true for both the default
218 device description file and a file given with option
219 .BR \-d ).
222 .BI \-e enc_file
223 The PostScript font should be reencoded to use the encoding described
224 in enc_file.
226 The format of
227 .I enc_file
228 is described in
229 .BR @L_D_PS@ (@MAN1EXT@).
231 If not found in the current directory, the `dev-ps' subdirectory of the
232 default font directory is searched.
235 .BI \-f name
236 The internal name of the @L_ROFF@ font is set to
237 .IR name .
240 .BI \-i n
241 Generate an italic correction for each character so that
242 the character's width plus the character's italic correction
243 is equal to
244 .I n
245 thousandths of an em
246 plus the amount by which the right edge of the character's bounding box
247 is to the right of the character's origin.
249 If this would result in a negative italic correction, use a zero
250 italic correction instead.
253 Also generate a subscript correction equal to the
254 product of the tangent of the slant of the font and
255 four fifths of the x-height of the font.
257 If this would result in a subscript correction greater than the italic
258 correction, use a subscript correction equal to the italic correction
259 instead.
262 Also generate a left italic correction for each character
263 equal to
264 .I n
265 thousandths of an em
266 plus the amount by which the left edge of the character's bounding box
267 is to the left of the character's origin.
269 The left italic correction may be negative unless option
270 .B \-m
271 is given.
274 This option is normally needed only with italic (or oblique) fonts.
276 The font files distributed with groff were created using an option of
277 .B \-i50
278 for italic fonts.
281 .B \-k
282 Omit any kerning data from the font.
283 This should be used only for mono-spaced fonts.
286 .B \-m
287 Prevent negative left italic correction values.
289 Roman font files distributed with @L_ROFF@ were created with
290 .B \-i0\ \-m
291 to improve spacing with
292 .BR @L_P_EQN@ (@MAN1EXT@).
295 .B \-n
296 Don't output a
297 .B ligatures
298 command for this font.
300 Use this with constant-width fonts.
303 .B \-s
304 The font is special.
306 The effect of this option is to add the
307 .B special
308 command to the font file.
311 .B \-v
312 Print version.
315 .B \-x
316 Don't use the built-in Adobe Glyph List.
319 .SH FILES
320 .Tp \w'\fB@FONTDIR@/dev-ps/download'u+2n
321 .B @FONTDIR@/dev-ps/DESC
322 Device description file.
325 .BI @FONTDIR@/dev-ps/ F
326 Font description file for font
327 .IR F .
330 .B @FONTDIR@/dev-ps/download
331 List of downloadable fonts.
334 .B @FONTDIR@/dev-ps/text.enc
335 Encoding used for text fonts.
338 .B @FONTDIR@/dev-ps/generate/textmap
339 Standard mapping.
342 .SH "SEE ALSO"
343 .BR @L_ROFF@ (@MAN1EXT@),
344 .BR @L_D_PS@ (@MAN1EXT@),
345 .BR perl (1) ,
346 .BR @L_ROFF@_font (@MAN5EXT@)
348 .\" s-ts-mode