TTF2AFM(1)
β¨ TTF2AFM(1) β¨
okay bestie, pull up a chair, we're talking about ttf2afm β the little cutie from the General Commands Manual section that turns your TrueType fonts into Adobe Font Metrics files. she's giving translator, she's giving bridge-builder, and honestly? we're obsessed π«Ά
π NAME π
ttf2afm β a utility to generate AFM files for TrueType fonts. periodt.
πΈ SYNOPSIS πΈ
ttf2afm [OPTIONS] FONTFILE
π¦ DESCRIPTION π¦
so ttf2afm is what we use to generate Adobe Font Metrics (AFM) files for TrueType (TTF) fonts, which is the whole entire reason they can be used with TeX. like, that's the vibe. no cap.
she takes the name of a TrueType font file as a required argument, so yes, you must give her a font, she's not doing this for free π. she can also take one or more of the options from the list below, and heads up bestie:
-iand-uare mutually exclusive β pick one, you cannot have both, it's giving toxic situationship and we don't do that π
π OPTIONS π
-iβ force printing glyph names in the formindexdecnum`. **decnum is decimal, she's being specific about it π-uβ force printing glyph names in the formunihexnum`. **hexnum is hex, we love a base-16 moment β¨-cname β write encoding tables to file name.eMN, where M is the platform ID and N is the encoding ID. two numbers, one filename, iconic.-vβ print program version. that's it, that's the whole option, a little "hi, here's who I am" π-eenc β encode AFM output using the encoding vector from enc-ooutfile β output to file outfile instead of standard output. redirecting without shell redirects, we stan a queen who does it herself π-mnum β use Unicode mapping num in the font
π₯ Platform numbers π₯
so the platform numbers can be one of:
0β Apple Unicode1β Macintosh2β ISO3β Microsoft
π Encodings π
and the encodings can be:
0β Roman (if the platform is Macintosh)0β Symbol (if the platform is Microsoft)1β Unicode (if the platform is Microsoft)
note the tea bestie: 0 shows up twice and means two totally different things depending on the platform. Roman vs Symbol. it's giving double identity, main character energy fr fr π
π SEE ALSO π
afm2tfm(1)afm2pl(1)- FontForge β
https://fontforge.org - LCDF TypeTools β
https://lcdf.org - A closer look at TrueType fonts and pdfTeX, Han The Thanh β
https://tug.org/TUGboat/tb30-1/tb94thanh.pdf
go read the Han The Thanh paper, iykyk πβ¨
π BUGS π
found a bug? send bug reports to <pdftex@tug.org> β it's a public mailing list, so everyone gets to see, no secrets here bestie π
π AUTHOR π
ttf2afm is part of pdfTeX and was written by Han The Thanh. absolute legend, no notes π
This manual page was originally written by C.M. Connelly, for the Debian GNU/Linux system, and updated by Karl Berry and others. group project, but it ate π«Ά
π§ cute little sign-off π§
and that's the whole page babes π this one's from Web2C 2025, dated 8 March 2022. go make some AFM files, you're gonna slay β
stay hydrated, read your manuals, and remember: every flag matters π
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: texlive-ttfutils 12:svn77830-105.fc44 Β· LPPL-1.3c
- fedora 44: texlive-ttfutils 12:svn77830-111.fc44 Β· LPPL-1.3c
- opensuse-leap 16.0: texlive-ttfutils-doc 2025.221.svn73908-160000.3.1 Β· LPPL-1.0
- ubuntu resolute: texlive-binaries 2025.20250727.75242+ds-5build1 Β· TeX-Live
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms