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

NAME

6       afm2afm - reencode an afm file
7

SYNOPSIS

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

AUTHOR

60       Marc Penninga <marcpenninga@gmail.com>
61
63       Copyright (C) 2005-2023 Marc Penninga.
64

LICENSE

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

DISCLAIMER

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

VERSION

79       This document describes afm2afm version 20230201.
80

RECENT CHANGES

82       (See the source code for the rest of the story.)
83
84       2019-05-20  Added the -version option.
85
86
87
88fontools                          2023-02-01                        AFM2AFM(1)
Impressum