AFM2AFM(1)
β¨ NAME β¨
afm2afm is giving "reencode an afm file" π
That's the whole vibe, bestie.
π SYNOPSIS π
afm2afm [-help] [-version] [-encoding=<encodingfile>] [-kpx=<kpxfile>]
[-output=<outputfile>] <afmfile>
πΈ DESCRIPTION πΈ
okay so afm2afm re-encodes an afm file, aka it gives your font file a total glow-up π¦
Metrics (including kerning data) for characters that aren't in the chosen encoding get dropped from the output, so the results can be (potentially much) smaller files β¨
You can also add extra kerning pairs to the output file π«Ά If you don't pick an encoding file, the afm file doesn't get re-encoded, BUT all the unused (unencoded) data still gets pruned π§Ή
The program also makes an entry for a dvips-style map file πΊοΈ Only if the afm file got re-encoded and the output was written to a file (aka both -encoding and -output were specified) though. No shortcuts here π
π OPTIONS AND ARGUMENTS π
-helpβ prints a quick description of the syntax π-versionβ prints the version number and exits π’-encoding=<encodingfile>β re-encodes to the encoding in<encodingfile>π-kpx=<kpxfile>β reads extra kerning pairs from<kpxfile>and adds them to the output π-output=<outputfile>β writes the result to<outputfile>instead of"stdout"π<afmfile>β the afm file to be re-encoded π§
β οΈ -kpx can't be used to override values from the input afm file. afm2afm writes both the old AND the new values to the output, so it's not the move for changing existing numbers π
About <kpxfile>: it should hold kerning data in standard afm format. Each kerning pair needs a line that looks like this:
KPX <left_glyph> <right_glyph> <amount>
Any other lines in the <kpxfile> are ignored, so don't stress about them π«§
Also, you can use either one or two dashes before options, and option names can be shortened to any unique prefix. Lowkey so convenient π¦
π AUTHOR π
Marc Penninga <marcpenninga@gmail.com> π
π¦ COPYRIGHT π¦
Copyright (C) 2005-2025 Marc Penninga. β¨
π LICENSE π
This program is free software, so you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. That's either version 2 of the License, or (at your option) any later version πΈ A copy of the GNU General Public License is included with afm2afm too. Look for the file GPLv2.txt π
π DISCLAIMER π
This program is shared in the hope that it'll be useful, but it comes with WITHOUT ANY WARRANTY. That means no implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, not even a little π See the GNU General Public License for more details π«Ά
π’ VERSION π’
This document describes afm2afm version 20250107 π
π°οΈ RECENT CHANGES π°οΈ
(See the source code for the rest of the story π)
2019-05-20β added the-versionoption π
That's a wrap, bestie! π This page came from fontools, last updated 2025-01-07 π§ Stay iconic and keep those kerning pairs clean π¦β¨
π¦ where this page comes from
- debian trixie: texlive-font-utils 2024.20250309-2
- fedora 44: texlive-fontools 12:svn78330-105.fc44 Β· GPL-2.0-or-later
- fedora 44: texlive-fontools 12:svn78330-111.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: texlive-fontools-doc 2025.221.svn73362-160000.3.1 Β· GPL-2.0-or-later
- ubuntu questing: texlive-font-utils 2024.20250309-2
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms