{
    "mode": "perldoc",
    "parameter": "Font::TTF::OldCmap",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Font%3A%3ATTF%3A%3AOldCmap/json",
    "generated": "2026-06-16T03:31:59Z",
    "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\ncmap is the Font::TTF::Segarr which handles the segmented arrays of\nformat 4 tables, and in a simpler form for format 0 tables.\n\nDue to the complexity of working with segmented arrays, most of the\nhandling of such arrays is via methods rather than via instance\nvariables.\n\nOne important feature of a format 4 table is that it always contains a\nsegment with a final address of 0xFFFF. If you are creating a table from\nscratch this is important (although Font::TTF::Segarr can work quite\nhappily without it).\n",
            "subsections": []
        },
        "INSTANCE VARIABLES": {
            "content": "The instance variables listed here are not preceded by a space due to\ntheir emulating structural information 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\npreceded 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\nparticular subtable.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$t->read\nReads the cmap into memory. Format 4 subtables read the whole subtable\nand fill in the segmented array 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\nthat table and looks up the appropriate glyph number from it.\n\n$t->findms\nFinds the Microsoft Unicode table and sets the \"mstable\" instance\nvariable to it if found. Returns the table it finds.\n\n$t->out($fh)\nWrites out a cmap table to a filehandle. If it has not been read, then\njust copies from input file to output\n\n@map = $t->reverse([$num])\nReturns a reverse map of the table of given number or the Microsoft\ncmap. I.e. given a glyph gives 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\ndetails, see the full text of the license in the file LICENSE.\n",
            "subsections": []
        }
    },
    "summary": "Font::TTF::OldCmap - Character map table  This module is deprecated",
    "flags": [],
    "examples": [],
    "see_also": []
}