TTF2AFM(1)
πΈ NAME πΈ
okay bestie, this is the TTF2AFM(1) page from the General Commands Manual, and the star is ttf2afm β it generates afm files for TrueType fonts for a given encoding. β¨
β¨ SYNOPSIS β¨
ttf2afm [options] ttf-file
π DESCRIPTION π
ttf2afm is the little tool that generates Adobe Font Metrics (AFM) files for TrueType (TTF) fonts so those fonts can be used with TeX. π«Ά
It takes the name of a TrueType font file as a required argument. You can also hand it one or more options from the list below β but heads up, -i and -u are mutually exclusive, so pick a lane, bestie. π
π OPTIONS π
-iβ forces glyph names to print in the form`index'decnum. π₯-uβ forces glyph names to print in the form`uni'hexnum. π¦-cname β writes encoding tables to the filename.eMN, whereMis the platform ID andNis the encoding ID. π-vβ prints the program version. β-eenc β encodes AFM output using the encoding vector from enc. π-ooutfile β outputs to file outfile instead of standard output. π-mnum β uses Unicode mapping num in the font. π
Platform numbers can be one of π«
0β Apple Unicode1β Macintosh2β ISO3β Microsoft
Encodings can be π§
0β Roman (if platform is Macintosh)0β Symbol (if platform is Microsoft)1β Unicode (if platform is Microsoft)
π¦ SEE ALSO π¦
afm2tfm(1),afm2pl(1).- FontForge (
https://fontforge.org), LCDF TypeTools (https://lcdf.org). - A closer look at TrueType fonts and pdfTeX, HΓ n The ThΓ nh,
https://tug.org/TUGboat/tb30-1/tb94thanh.pdf
π AUTHOR π
ttf2afm is part of pdfTeX and was written by HΓ n The ThΓ nh. β¨
C.M. Connelly originally wrote this manual page for the Debian GNU/Linux system, and Karl Berry and others updated it. π
If you wanna talk about ttf2afm, the public discussion list is at https://lists.tug.org/pdftex. π«Ά
π Thatβs the TTF2AFM(1) tea, bestie β source/version Web2C 2026, dated 25 January 2026. π
π¦ where this page comes from
- alpine 3.24: texmf-dist-fontutils-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms