{
    "mode": "perldoc",
    "parameter": "Font::TTF::Dumper",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Font%3A%3ATTF%3A%3ADumper/json",
    "generated": "2026-06-13T14:45:33Z",
    "synopsis": "use Font::TTF::Dumper;\n# Print a table from the font structure:\nprint ttfdump($font->{$tag});\n# Print font table with name\nprint ttfdump($font->{'head'}, 'head');\n# Print font table with name and other options\nprint ttfdump($font->{'head'}, 'head', %opts);\n# Print one glyph's data:\nprint ttfdump($font->{'loca'}->read->{'glyphs'}[$gid], \"glyph$gid\");",
    "sections": {
        "NAME": {
            "content": "Font::TTF::Dumper - Debug dump of a font datastructure, avoiding recursion on ' PARENT'\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Font::TTF::Dumper;\n\n# Print a table from the font structure:\nprint ttfdump($font->{$tag});\n\n# Print font table with name\nprint ttfdump($font->{'head'}, 'head');\n\n# Print font table with name and other options\nprint ttfdump($font->{'head'}, 'head', %opts);\n\n# Print one glyph's data:\nprint ttfdump($font->{'loca'}->read->{'glyphs'}[$gid], \"glyph$gid\");\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Font::TTF data structures are trees created from hashes and arrays. When trying to figure out\nhow the structures work, sometimes it is helpful to use Data::Dumper on them. However, many of\nthe object structures have ' PARENT' links that refer back to the object's parent, which means\nthat Data::Dumper ends up dumping the whole font no matter what.\n\nThe main purpose of this module is to invoke Data::Dumper with a filter that skips over the '\nPARENT' element of any hash.\n\nTo reduce output further, this module also skips over ' CACHE' elements and any hash element\nwhose value is a Font::TTF::Glyph or Font::TTF::Font object. (Really should make this\nconfigurable.)\n\nIf $opts{'d'}, then set Deepcopy mode to minimize use of crossreferencing.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Bob Hallissy <http://scripts.sil.org/FontUtils>.\n",
            "subsections": []
        },
        "LICENSING": {
            "content": "Copyright (c) 1998-2016, SIL International (http://www.sil.org)\n\nThis module is released under the terms of the Artistic License 2.0. For details, see the full\ntext of the license in the file LICENSE.\n",
            "subsections": []
        }
    },
    "summary": "Font::TTF::Dumper - Debug dump of a font datastructure, avoiding recursion on ' PARENT'",
    "flags": [],
    "examples": [],
    "see_also": []
}