{
    "mode": "perldoc",
    "parameter": "Font::TTF::OldCmap",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Font%3A%3ATTF%3A%3AOldCmap/json",
    "generated": "2026-06-15T14:45:01Z",
    "sections": {
        "NAME": {
            "content": "Font::TTF::OldCmap - Character map table\n\nThis module is deprecated\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Looks after the character map. The primary structure used for handling a cmap is the\nFont::TTF::Segarr which handles the segmented arrays of format 4 tables, and in a simpler form\nfor format 0 tables.\n\nDue to the complexity of working with segmented arrays, most of the handling of such arrays is\nvia methods rather than via instance variables.\n\nOne important feature of a format 4 table is that it always contains a segment with a final\naddress of 0xFFFF. If you are creating a table from scratch this is important (although\nFont::TTF::Segarr can work quite happily without it).\n",
            "subsections": []
        },
        "INSTANCE VARIABLES": {
            "content": "The instance variables listed here are not preceded by a space due to their emulating structural\ninformation in the font.\n\nNum Number of subtables in this table\n\nTables\nAn array of subtables ([0..Num-1])\n\nEach subtables also has its own instance variables which are, again, not preceded by a space.\n\nPlatform\nThe platform number for this subtable\n\nEncoding\nThe encoding number for this subtable\n\nFormat\nGives the stored format of this subtable\n\nVer Gives the version (or language) information for this subtable\n\nval This points to a Font::TTF::Segarr which contains the content of the particular subtable.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$t->read\nReads the cmap into memory. Format 4 subtables read the whole subtable and fill in the segmented\narray accordingly.\n\nFormat 2 subtables are not read at all.\n\n$t->mslookup($uni)\nGiven a Unicode value in the MS table (Platform 3, Encoding 1) locates that table and looks up\nthe appropriate glyph number from it.\n\n$t->findms\nFinds the Microsoft Unicode table and sets the \"mstable\" instance variable to it if found.\nReturns the table it finds.\n\n$t->out($fh)\nWrites out a cmap table to a filehandle. If it has not been read, then just copies from input\nfile to output\n\n@map = $t->reverse([$num])\nReturns a reverse map of the table of given number or the Microsoft cmap. I.e. given a glyph\ngives the Unicode value for it.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "*   No support for format 2 tables (MBCS)\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::OldCmap - Character map table  This module is deprecated",
    "flags": [],
    "examples": [],
    "see_also": []
}