{
    "content": [
        {
            "type": "text",
            "text": "# Font::TTF::Coverage (perldoc)\n\n## NAME\n\nFont::TTF::Coverage - Opentype coverage and class definition objects\n\n## DESCRIPTION\n\nCoverage tables and class definition objects are virtually identical concepts in OpenType. Their\ndifference comes purely in their storage. Therefore we can say that a coverage table is a class\ndefinition in which the class definition for each glyph is the corresponding index in the\ncoverage table. The resulting data structure is that a Coverage table has the following fields:\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **METHODS**\n- **AUTHOR**\n- **LICENSING**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Font::TTF::Coverage",
        "section": "",
        "mode": "perldoc",
        "summary": "Font::TTF::Coverage - Opentype coverage and class definition objects",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 26,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LICENSING",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Font::TTF::Coverage - Opentype coverage and class definition objects\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Coverage tables and class definition objects are virtually identical concepts in OpenType. Their\ndifference comes purely in their storage. Therefore we can say that a coverage table is a class\ndefinition in which the class definition for each glyph is the corresponding index in the\ncoverage table. The resulting data structure is that a Coverage table has the following fields:\n\ncover\nA boolean to indicate whether this table is a coverage table (TRUE) or a class definition\n(FALSE)\n\nval A hash of glyph ids against values (either coverage index or class value)\n\nfmt The storage format used is given here, but is recalculated when the table is written out.\n\ncount\nA count of the elements in a coverage table for use with add. Each subsequent addition is\nadded with the current count and increments the count.\n\nmax Maximum class value in a class table.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new($isCover [, vals])\nCreates a new coverage table or class definition table, depending upon the value of $isCover. if\n$isCover then vals may be a list of glyphs to include in order. If no $isCover, then vals is a\nhash of glyphs against class values.\n\nread($fh)\nReads the coverage/class table from the given file handle\n\nout($fh, $state)\nWrites the coverage/class table to the given file handle. If $state is 1 then the output string\nis returned rather than being output to a filehandle.\n\n$c->add($glyphid[, $class])\nAdds a glyph id to the coverage or class table. Returns the index or class number of the glyphid\nadded.\n\n$c->signature\nReturns a vector of all the glyph ids covered by this coverage table or class\n\n@map=$c->sort\nSorts the coverage table so that indexes are in ascending order of glyphid. Returns a map such\nthat $map[$newindex]=$oldindex.\n\n$c->outxml($context)\nOutputs this coverage/class in XML\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Martin Hosken <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": []
            }
        }
    }
}