TTFDUMP(1)

πŸ“¦
version 77830 Β· 2 versions
, in alpine 3.24, debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– ttfdump ✨ (TTFDUMP(1), General Commands Manual)

okay bestie, this is the manual page for ttfdump πŸŽ€ it's a General Commands Manual thing, and it's literally the tool for peeking inside TrueType font files πŸ‘€

🧚 NAME

  • ttfdump β€” dumping the contents of a TrueType Font file πŸ“

🌸 SYNOPSIS

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

πŸ’… DESCRIPTION

okay so ttfdump takes a TrueType font file and dumps everything inside it as ASCII text 🫢 a TrueType font file is made up of a bunch of tables, and those tables come in two flavors: Required Tables and Optional Tables ✨ you can also merge multiple TrueType fonts together into a TrueType Collection πŸ¦‹ it's giving organized wardrobe energy πŸ’œ

✨ OPTIONS ✨

  • -h β€” print a help message to standard output and exit πŸ™ˆ
  • -t tablename β€” if you pass this, ttfdump only dumps the table you name. if you don't, it dumps every single table in ttfile 😭 here's what you can pick from:

πŸ‘‘ Required Tables

  • cmap β€” the 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 you pass this, ttfdump dumps just the glyph at that index. otherwise it dumps every glyph in ttfile πŸ”
  • -c collection β€” picks one TrueType font out of a TrueType Collection πŸŽ€
  • -o dumpfile β€” sends the dump into dumpfile instead of the screen. if you skip this, it goes to stdout πŸ“
  • -i ttfile β€” the TrueType font file you want dumped 🫧

πŸŽ€ EXAMPLE

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

ttfdump times.ttf

to dump just the required cmap table from that 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 πŸ“š

πŸ™ˆ NOTE

⚠️ bestie, heads up: the instruction disassembler is not implemented πŸ’€

🧚 AUTHOR

  • Li-Da Lho, ollie@ms1.hinet.net πŸ’œ

and that's the tea 🫢 this was the ttfdump manual from the ILX Project, last updated 14 November 2011 πŸ’– slay the fonts responsibly ✨🌈