{
    "mode": "man",
    "parameter": "ttfdump",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ttfdump/1/json",
    "generated": "2026-06-15T14:24:54Z",
    "synopsis": "ttfdump [-h] [-t tablename] [-g glyphnumber] [-c collection] [-o dumpfile] [-i] ttfile",
    "sections": {
        "NAME": {
            "content": "ttfdump - Dumping the contents of a TrueType Font file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ttfdump [-h] [-t tablename] [-g glyphnumber] [-c collection] [-o dumpfile] [-i] ttfile\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ttfdump  dumps  the  contents of a TrueType font file in ASCII form.  A TrueType font file is\nconsist of various tables. Those table are divided into two categories - Required Tables  and\nOptional Tables. Mulitiple TrueType fonts can be merged to a TrueType Collection.\n",
            "subsections": [
                {
                    "name": "Options",
                    "content": ""
                },
                {
                    "name": "-h",
                    "content": "",
                    "flag": "-h"
                },
                {
                    "name": "-t",
                    "content": "If  this option is specified then dump the table \"tablename\", otherwise dump every ta‐\nbles in ttfile.  Tablename can be one of the following:\n\nRequired Tables\n\ncmap   character to glyph mapping table\n\nglyf   glyph data\n\nhead   font header\n\nhhea   horizontal header\n\nhmtx   horizontal metrics\n\nloca   index to location\n\nmaxp   maximum profile\n\nname   naming table\n\npost   PostScript information\n\nOS/2   OS/2 and windows specific metrics\n\nOptional Tables\n\ncvt    control value table\n\nfpgm   font program; not implemented yet.\n\ngasp   grid-fitting and scan conversion procedure (grayscale)\n\nhdmx   horizontal device metrics\n\nkern   kerning table\n\nLTSH   Linear threshold table\n\nprep   CVT program; not implemented yet\n\nPCLT   PCL5 table\n\nVDMX   Vertical Device Metrics table\n\nvhea   vertical metrics header\n\nvmtx   vertical metrics\n\nAdditional OpenType Tables\n\nGPOS   glyph positioning table\n\nGSUB   glyph substitution table\n",
                    "flag": "-t"
                },
                {
                    "name": "-g",
                    "content": "If this option is specified then dump the glyph with index glyphnumber, otherwise dump\nall glyphs in ttfile.\n",
                    "flag": "-g"
                },
                {
                    "name": "-c",
                    "content": "Select a TrueType font in a TrueType Collection.\n",
                    "flag": "-c"
                },
                {
                    "name": "-o",
                    "content": "Output of the dump. If this option is not specified, dump to stdout.\n",
                    "flag": "-o"
                },
                {
                    "name": "-i",
                    "content": "TrueType font file to be dumped.\n",
                    "flag": "-i"
                }
            ]
        },
        "EXAMPLE": {
            "content": "To dump all information in the TrueType font file times.ttf:\nttfdump times.ttf\n\nTo dump the required table cmap in the file:\nttfdump -t cmap times.ttf\n\nTo dump a single glyph with index 50:\nttfdump -g 50 times.ttf\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "TrueType 1.0 Font Files,  Technical Specification Revision 1.66 November 1995\n",
            "subsections": []
        },
        "NOTE": {
            "content": "Instruction disassembler in not implemented.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Li-Da Lho, ollie@ms1.hinet.net\n\n\n\nILX Project                               14 November 2011                                TTFDUMP(1)",
            "subsections": []
        }
    },
    "summary": "ttfdump - Dumping the contents of a TrueType Font file",
    "flags": [
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": "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"
        },
        {
            "flag": "-g",
            "long": null,
            "arg": null,
            "description": "If this option is specified then dump the glyph with index glyphnumber, otherwise dump all glyphs in ttfile."
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "Select a TrueType font in a TrueType Collection."
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": "Output of the dump. If this option is not specified, dump to stdout."
        },
        {
            "flag": "-i",
            "long": null,
            "arg": null,
            "description": "TrueType font file to be dumped."
        }
    ],
    "examples": [
        "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": []
}