{
    "mode": "perldoc",
    "parameter": "Font::TTF::Head",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Font%3A%3ATTF%3A%3AHead/json",
    "generated": "2026-06-13T22:54:54Z",
    "sections": {
        "NAME": {
            "content": "Font::TTF::Head - The head table for a TTF Font\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a very basic table with just instance variables as described in the TTF documentation,\nusing the same names. One of the most commonly used is \"unitsPerEm\".\n",
            "subsections": []
        },
        "INSTANCE VARIABLES": {
            "content": "The \"head\" table has no internal instance variables beyond those common to all tables and those\nspecified in the standard:\n\nversion\nfontRevision\ncheckSumAdjustment\nmagicNumber\nflags\nunitsPerEm\ncreated\nmodified\nxMin\nyMin\nxMax\nyMax\nmacStyle\nlowestRecPPEM\nfontDirectionHint\nindexToLocFormat\nglyphDataFormat\n\nThe two dates are held as an array of two unsigned longs (32-bits)\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$t->read\nReads the table into memory thanks to some utility functions\n\n$t->out($fh)\nWrites the table to a file either from memory or by copying. If in memory (which is usually) the\ncheckSumAdjustment field is set to 0 as per the default if the file checksum is not to be\nconsidered.\n\n$t->minsize()\nReturns the minimum size this table can be. If it is smaller than this, then the table must be\nbad and should be deleted or whatever.\n\n$t->XMLelement($context, $depth, $key, $value)\nHandles date process for the XML exporter\n\n$t->update\nUpdates the head table based on the glyph data and the hmtx table\n\n$t->getdate($iscreate)\nConverts font modification time (or creation time if $iscreate is set) to a 32-bit integer as\nreturned from time(). Returns undef if the value is out of range, either before the epoch or\nafter the maximum storable time.\n\n$t->setdate($time, $iscreate)\nSets the time information for modification (or creation time if $iscreate is set) according to\nthe 32-bit time information.\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::Head - The head table for a TTF Font",
    "flags": [],
    "examples": [],
    "see_also": []
}