{
    "mode": "perldoc",
    "parameter": "Font::TTF::Hmtx",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Font%3A%3ATTF%3A%3AHmtx/json",
    "generated": "2026-10-04T10:20:56Z",
    "sections": {
        "NAME": {
            "content": "Font::TTF::Hmtx - Horizontal Metrics\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Contains the advance width and left side bearing for each glyph. Given the compressability of\nthe data onto disk, this table uses information from other tables, and thus must do part of its\noutput during the output of other tables\n",
            "subsections": []
        },
        "INSTANCE VARIABLES": {
            "content": "The horizontal metrics are kept in two arrays by glyph id. The variable names do not start with\na space\n\nadvance\nAn array containing the advance width for each glyph\n\nlsb An array containing the left side bearing for each glyph\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$t->read\nReads the horizontal metrics from the TTF file into memory\n\n$t->numMetrics\nCalculates again the number of long metrics required to store the information here. Returns\nundef if the table has not been read.\n\n$t->out($fh)\nWrites the metrics to a TTF file. Assumes that the \"hhea\" has updated the numHMetrics from here\n\n$t->update\nUpdates the lsb values from the xMin from the each glyph\n\n$t->outxml($context, $depth)\nOutputs the table in XML\n",
            "subsections": []
        },
        "BUGS": {
            "content": "None known\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": []
        }
    },
    "summary": "Font::TTF::Hmtx - Horizontal Metrics",
    "flags": [],
    "examples": [],
    "see_also": []
}