| 1 |
.TH TTF2AFM 1 "25 January 2026" "Web2C 2026" |
| 2 |
.\"===================================================================== |
| 3 |
.if t .ds TX \fRT\\h'-0.10m'\\v'0.17v'E\\v'-0.17v'\\h'-0.06m'X\fP |
| 4 |
.if n .ds TX TeX |
| 5 |
.\"===================================================================== |
| 6 |
.SH "NAME" |
| 7 |
ttf2afm \- generate afm files for TrueType fonts for a given encoding |
| 8 |
.SH "SYNOPSIS" |
| 9 |
.B ttf2afm |
| 10 |
.RI [ options ] |
| 11 |
.I ttf-file |
| 12 |
.\"===================================================================== |
| 13 |
.SH "DESCRIPTION" |
| 14 |
\fBttf2afm\fP is used to generate Adobe Font Metrics (AFM) files for |
| 15 |
TrueType (TTF) fonts to allow them to be used with \*(TX. |
| 16 |
.PP |
| 17 |
\fBttf2afm\fP takes the name of a TrueType font file as a required |
| 18 |
argument. It may also take one or more options from the list below; |
| 19 |
\fB-i\fP and \fB-u\fP are mutually exclusive. |
| 20 |
.SH "OPTIONS" |
| 21 |
.IP "\fB-i\fP" |
| 22 |
force printing glyph names in form |
| 23 |
`index'\fIdecnum\fP |
| 24 |
.IP "\fB-u\fP" |
| 25 |
force printing glyph names in form |
| 26 |
`uni'\fIhexnum\fP |
| 27 |
.IP "\fB-c\fP \fIname\fP" |
| 28 |
write encoding tables to file |
| 29 |
\fIname.eMN\fP, where \fIM\fP is the platform |
| 30 |
ID and \fIN\fP is the encoding ID |
| 31 |
.IP "\fB-v\fP" |
| 32 |
print program version |
| 33 |
.IP "\fB-e\fP \fIenc\fP" |
| 34 |
encode AFM output using encoding vector from \fIenc\fP |
| 35 |
.IP "\fB-o\fP \fIoutfile\fP" |
| 36 |
output to file \fIoutfile\fP instead of standard output |
| 37 |
.IP "\fB-m\fP \fInum\fP" |
| 38 |
use Unicode mapping \fInum\fP in the font |
| 39 |
.PP |
| 40 |
Platform numbers can be one of |
| 41 |
.IP "0" |
| 42 |
Apple Unicode |
| 43 |
.IP "1" |
| 44 |
Macintosh |
| 45 |
.IP "2" |
| 46 |
ISO |
| 47 |
.IP "3" |
| 48 |
Microsoft |
| 49 |
.PP |
| 50 |
Encodings can be |
| 51 |
.IP "0" |
| 52 |
Roman (if platform is Macintosh) |
| 53 |
.IP "0" |
| 54 |
Symbol (if platform is Microsoft) |
| 55 |
.IP "1" |
| 56 |
Unicode (if platform is Microsoft) |
| 57 |
.\"===================================================================== |
| 58 |
.SH "SEE ALSO" |
| 59 |
afm2tfm(1), afm2pl(1). |
| 60 |
.PP |
| 61 |
FontForge (https://fontforge.org), |
| 62 |
.br |
| 63 |
LCDF TypeTools (https://lcdf.org). |
| 64 |
.PP |
| 65 |
A closer look at TrueType fonts and pdf\*(TX, H\[`a]n The Th\[`a]nh, |
| 66 |
https://tug.org/TUGboat/tb30-1/tb94thanh.pdf |
| 67 |
.\"===================================================================== |
| 68 |
.SH "AUTHOR" |
| 69 |
\fBttf2afm\fP is part of pdf\*(TX and was written by H\[`a]n The Th\[`a]nh. |
| 70 |
.PP |
| 71 |
This manual page was originally written by C.M. Connelly, for the |
| 72 |
Debian GNU/Linux system, and updated by Karl Berry and others. |
| 73 |
.PP |
| 74 |
Public discussion list for ttf2afm: |
| 75 |
https://lists.tug.org/pdftex |