TTFDUMP(1)

πŸ“¦ version 2026.0, in alpine 3.24

πŸ’… ttfdump(1) β€” the group chat guide

okay so bestie, welcome to ttfdump, a General Commands Manual icon ✨ β€” she's the one who dumps the contents of a TrueType Font file, and honestly? she ate. πŸ’–


✨ NAME ✨

ttfdump β€” dumping the contents of a TrueType Font file. yes, that's literally the whole job and she does it flawlessly 🫢


🌸 SYNOPSIS 🌸

ttfdump [-h] [-t tablename] [-g glyphnumber] [-c collection] [-o
dumpfile] [-i] ttfile

πŸ¦‹ DESCRIPTION πŸ¦‹

so ttfdump dumps the contents of a TrueType font file in ASCII form πŸ“. a TrueType font file is consist of various tables (their words, not mine, but the facts stay facts πŸ’…). those table are divided into two categories β€” Required Tables and Optional Tables. also! mulitiple TrueType fonts can be merged to a TrueType Collection πŸ‘‘.


πŸŽ€ Options

  • -h β€” print a help message on standard output and exit. short, sweet, iconic 🌈
  • -t tablename β€” if this option is specified then dump the table tablename, otherwise dump every tables in ttfile. tablename can be one of the following:

πŸ’œ Required Tables

  • cmap β€” character to glyph mapping table
  • glyf β€” glyph data
  • head β€” font header
  • hhea β€” horizontal header
  • hmtx β€” horizontal metrics
  • loca β€” index to location
  • maxp β€” maximum profile
  • name β€” naming table
  • post β€” PostScript information
  • OS/2 β€” OS/2 and windows specific metrics

πŸ’€ Optional Tables

  • cvt β€” control value table
  • fpgm β€” font program; not implemented yet.
  • gasp β€” grid-fitting and scan conversion procedure (grayscale)
  • hdmx β€” horizontal device metrics
  • kern β€” kerning table
  • LTSH β€” Linear threshold table
  • prep β€” CVT program; not implemented yet
  • PCLT β€” PCL5 table
  • VDMX β€” Vertical Device Metrics table
  • vhea β€” vertical metrics header
  • vmtx β€” vertical metrics

⭐ Additional OpenType Tables

  • GPOS β€” glyph positioning table
  • GSUB β€” glyph substitution table
  • -g glyphnumber β€” if this option is specified then dump the glyph with index glyphnumber, otherwise dump all glyphs in ttfile. one glyph or the whole squad, your call πŸ’…
  • -c collection β€” select a TrueType font in a TrueType Collection. picking your main character out of the lineup fr fr πŸ‘‘
  • -o dumpfile β€” output of the dump. if this option is not specified, dump to stdout. no cap 🧚
  • -i ttfile β€” TrueType font file to be dumped.

πŸ”₯ EXAMPLE πŸ”₯

to dump all information in the TrueType font file times.ttf:

ttfdump times.ttf

to dump the required table cmap in the file:

ttfdump -t cmap times.ttf

to dump a single glyph with index 50:

ttfdump -g 50 times.ttf

πŸ“ SEE ALSO πŸ“

TrueType 1.0 Font Files, Technical Specification Revision 1.66 November 1995 β€” the lore, the source material, the required reading πŸ“š


πŸ™ˆ NOTE πŸ™ˆ

Instruction disassembler in not implemented. 😭 (their words! keeping it 100)

🌟 AUTHOR 🌟

Li-Da Lho β€” legend behavior πŸ’–

currently maintained as part of TeX Live; email bug reports to tex-k@tug.org.. β€” yes, that's two dots, I'm not fixing it, facts are facts bestie 🫢


and that's the whole vibe check! this page is brought to you by TeX Live and dated 14 September 2025 β€” periodt, slay, lowkey iconic, go dump some fonts πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from