1AFM2AFM(1)                       Marc Penninga                      AFM2AFM(1)
2
3
4

NAME

6       afm2afm - reencode an afm file
7

SYNOPSIS

9       afm2afm [-help] [-encoding encodingfile] [-kpx kpxfile] [-output
10               outputfile] afmfile
11

DESCRIPTION

13       afm2afm re-encodes an afm file.
14
15       Metrics (including kerning data) for characters not present in the
16       chosen encoding are excluded from the output, which resuls in
17       (potentially much) smaller files.
18
19       Additional kerning pairs can be added to the output file.  If you don't
20       specify an encoding file, the afm file isn't re-encoded; however, all
21       unused (unencoded) data is still pruned.
22
23       The program also generates an entry for a dvips-style map file, but
24       only if the afm file has been re-encoded and the output was written to
25       file (i.e., if both the -encoding and -output options were specified).
26

OPTIONS AND ARGUMENTS

28       -help
29           Print a short description of the syntax
30
31       -encoding encodingfile
32           Re-encode to the enconding in encodingfile
33
34       -kpx kpxfile
35           Read additional kerning pairs from kpxfile and add these to the
36           output.  This option cannot be used to override values from the
37           input afm file, since afm2afm will write both old and new values to
38           the output!
39
40           The kpxfile should contain kerning data in standard afm format,
41           i.e. for each kerning pair there should be a line
42
43               KPX <left_glyph> <right_glyph> <amount>
44
45           All other lines in the kpxfile are ignored.
46
47       -output outputfile
48           Write the result to outputfile instead of "stdout".
49
50       afmfile
51           The afm file to be re-encoded.
52
53       You may use either one or two dashes before options, and option names
54       may be shortened to a unique prefix.
55

AUTHOR

57       Marc Penninga <marcpenninga@gmail.com>
58
60       Copyright (C) 2005-2013 Marc Penninga.
61

LICENSE

63       This program is free software; you can redistribute it and/or modify it
64       under the terms of the GNU General Public License as published by the
65       Free Software Foundation, either version 2 of the License, or (at your
66       option) any later version.  A copy of the GNU General Public License is
67       included with afm2afm; see the file GPLv2.txt.
68

DISCLAIMER

70       This program is distributed in the hope that it will be useful, but
71       WITHOUT ANY WARRANTY; without even the implied warranty of
72       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
73       General Public License for more details.
74

RECENT CHANGES

76       (See the source code for the rest of the story.)
77
78       2013-08-07  Added the -kpx command-line option.  Replaced all
79                   "given/when" constructions in the source code by "if"'s, to
80                   avoid warnings about experimental features in Perl 5.18 and
81                   later.
82
83       2012-02-01  Refactored the code; added the "no re-encoding, only
84                   pruning" functionality.
85
86
87
88fontools                          2013-08-07                        AFM2AFM(1)
Impressum