TTF2AFM(1)

πŸ“¦ version 2026.0, in alpine 3.24

🌸 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. πŸ¦‹
  • -c name β€” writes encoding tables to the file name.eMN, where M is the platform ID and N is the encoding ID. πŸŽ€
  • -v β€” prints the program version. ⭐
  • -e enc β€” encodes AFM output using the encoding vector from enc. 🌈
  • -o outfile β€” outputs to file outfile instead of standard output. πŸ’–
  • -m num β€” uses 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)

πŸ¦‹ SEE ALSO πŸ¦‹

πŸ‘‘ 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