logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ttfdump - Dumping the contents of a TrueType Font file

Author

       Li-Da Lho, ollie@ms1.hinet.net

ILX Project                                     14 November 2011                                      TTFDUMP(1)

Description

ttfdump  dumps  the  contents  of a TrueType font file in ASCII form.  A TrueType font file is consist of
       various tables. Those table are divided into two  categories  -  RequiredTables  and  OptionalTables.
       Mulitiple TrueType fonts can be merged to a TrueType Collection.

   Options-h     Print a help message on standard output and exit.

       -ttablename
              If  this  option  is  specified  then  dump  the table "tablename", otherwise dump every tables in
              ttfile.  Tablename can be one of the following:

              RequiredTablescmap   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

              OptionalTablescvt    control value table

              fpgm   font program; notimplementedyet.gasp   grid-fitting and scan conversion procedure (grayscale)

              hdmx   horizontal device metrics

              kern   kerning table

              LTSH   Linear threshold table

              prep   CVT program; notimplementedyetPCLT   PCL5 table

              VDMX   Vertical Device Metrics table

              vhea   vertical metrics header

              vmtx   vertical metrics

              AdditionalOpenTypeTablesGPOS   glyph positioning table

              GSUB   glyph substitution table

       -gglyphnumber
              If this option is specified then dump the glyph with index glyphnumber, otherwise dump all  glyphs
              in ttfile.

       -ccollection
              Select a TrueType font in a TrueType Collection.

       -odumpfile
              Output of the dump. If this option is not specified, dump to stdout.

       -ittfile
              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

Name

       ttfdump - Dumping the contents of a TrueType Font file

Note

       Instruction disassembler in not implemented.

See Also

       TrueType 1.0 Font Files,  TechnicalSpecificationRevision1.66November1995

Synopsis

ttfdump [-h] [-ttablename] [-gglyphnumber] [-ccollection] [-odumpfile] [-i] ttfile

See Also