# phpman > man > ttfdump(1)

[TTFDUMP(1)](https://www.chedong.com/phpMan.php/man/TTFDUMP/1/markdown)                             General Commands Manual                            [TTFDUMP(1)](https://www.chedong.com/phpMan.php/man/TTFDUMP/1/markdown)



## NAME
       ttfdump - Dumping the contents of a TrueType Font file

## SYNOPSIS
       **ttfdump** [**-h**] [**-t** _tablename_] [**-g** _glyphnumber_] [**-c** _collection_] [**-o** _dumpfile_] [**-i**] _ttfile_

## 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 - _Required_ _Tables_  and
       _Optional_ _Tables_. Mulitiple TrueType fonts can be merged to a TrueType Collection.

### Options
### -h

### -t
              If  this option is specified then dump the table _"tablename"_, otherwise dump every ta‐
              bles 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
              If this option is specified then dump the glyph with index _glyphnumber_, otherwise dump
              all glyphs in _ttfile_.

### -c
              Select a TrueType font in a TrueType Collection.

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

### -i
              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_

## NOTE
       Instruction disassembler in not implemented.

## AUTHOR
       Li-Da Lho, <ollie@ms1.hinet.net>



ILX Project                               14 November 2011                                [TTFDUMP(1)](https://www.chedong.com/phpMan.php/man/TTFDUMP/1/markdown)
