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:

-i and -u are 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 form indexdecnum`. **decnum is decimal, she's being specific about it πŸ’œ
  • -u β€” force printing glyph names in the form unihexnum`. **hexnum is hex, we love a base-16 moment ✨
  • -c name β€” 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" πŸŽ€
  • -e enc β€” encode AFM output using the encoding vector from enc
  • -o outfile β€” output to file outfile instead of standard output. redirecting without shell redirects, we stan a queen who does it herself πŸ’…
  • -m num β€” use Unicode mapping num in the font

πŸ”₯ Platform numbers πŸ”₯

so the platform numbers can be one of:

  • 0 β€” Apple Unicode
  • 1 β€” Macintosh
  • 2 β€” ISO
  • 3 β€” 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 πŸ’œ

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