ttf2afm1
Generate afm files for truetype fonts for a given encoding
Usage
ttf2afm [options]
ttf-file
Overview
ttf2afm is used to generate Adobe Font Metrics (AFM) files for TrueType (TTF) fonts to allow them to be used with TeX.
ttf2afm takes the name of a TrueType font file as a required argument. It may also take one or more options from the list below; -i and -u are mutually exclusive.
Options
-
-i -
force printing glyph names in form `index'decnum
-
-u -
force printing glyph names in form `uni'hexnum
-
-c name -
write encoding tables to file name.eMN, where M is the platform ID and N is the encoding ID
-
-v -
print program version
-
-e enc -
encode AFM output using encoding vector from enc
-
-o outfile -
output to file outfile instead of standard output
-
-m num -
use Unicode mapping num in the font
Platform numbers can be one of
- 0
-
Apple Unicode
- 1
-
Macintosh
- 2
-
ISO
- 3
-
Microsoft
Encodings can be
- 0
-
Roman (if platform is Macintosh)
- 0
-
Symbol (if platform is Microsoft)
- 1
-
Unicode (if platform is Microsoft)
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie)
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)
- Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze) to Debian 4.0 (Etch)
- Debian 3.1 (Sarge)
- Debian 3.0 (Woody)
- Debian 2.2 (Potato)
- Debian 2.1 (Slink)
-c since Debian 3.0 (Woody);
-e since Debian 3.0 (Woody);
-i since Debian 3.0 (Woody);
-m since Debian 8 (Jessie);
-o since Debian 3.0 (Woody);
-u since Debian 8 (Jessie);
-v since Debian 8 (Jessie).
-a until Debian 7 (Wheezy);
-d until Debian 7 (Wheezy);
-h until Debian 7 (Wheezy).