{
    "mode": "perldoc",
    "parameter": "Font::TTF::OTTags",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Font%3A%3ATTF%3A%3AOTTags/json",
    "generated": "2026-06-13T14:03:33Z",
    "synopsis": "use Font::TTF::OTTags qw( %tttags %ttnames %iso639 readtagsfile );\n# Look at built-in stuff:\n$scripttag = $tttags{'SCRIPT'}{'Cypriot Syllabary'};  # returns 'cprt'\n$langname = $ttnames{'LANGUAGE'}{'ALT '};             # returns 'Altai'\n# Map iso639-2 tag to/from OT lang tag\n@isotags = $iso639{'ALT '};    # returns [ 'atv', 'alt' ]\n$langtag = $iso639{'atv'};    # returns 'ALT '\n# Read latest tags file to add to built-in definitions\nreadtagsfile (\"C:\\\\Program Files\\\\Microsoft VOLT\\\\TAGS.txt\");\nFirst-level keys to %tttags and %ttnames are:\nSCRIPT\nretrieve script tag or name\nLANGUAGE\nretrieve language tag or name\nFEATURE\nretrieve feature tag or name\nBuilt-in data has been derived from the 2014-07-11 draft of the 3rd edition of ISO/IEC 14496-22\n(Information technology - Coding of audio-visual objects - Part 22: Open Font Format) which,\nwhen finalized and approved, will replace the second edition (ISO/IEC 14496-22:2009).",
    "sections": {
        "NAME": {
            "content": "Font::TTF::OTTags - Utilities for TrueType/OpenType tags\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Font::TTF::OTTags qw( %tttags %ttnames %iso639 readtagsfile );\n\n# Look at built-in stuff:\n$scripttag = $tttags{'SCRIPT'}{'Cypriot Syllabary'};  # returns 'cprt'\n$langname = $ttnames{'LANGUAGE'}{'ALT '};             # returns 'Altai'\n\n# Map iso639-2 tag to/from OT lang tag\n@isotags = $iso639{'ALT '};    # returns [ 'atv', 'alt' ]\n$langtag = $iso639{'atv'};    # returns 'ALT '\n\n# Read latest tags file to add to built-in definitions\nreadtagsfile (\"C:\\\\Program Files\\\\Microsoft VOLT\\\\TAGS.txt\");\n\nFirst-level keys to %tttags and %ttnames are:\n\nSCRIPT\nretrieve script tag or name\n\nLANGUAGE\nretrieve language tag or name\n\nFEATURE\nretrieve feature tag or name\n\nBuilt-in data has been derived from the 2014-07-11 draft of the 3rd edition of ISO/IEC 14496-22\n(Information technology - Coding of audio-visual objects - Part 22: Open Font Format) which,\nwhen finalized and approved, will replace the second edition (ISO/IEC 14496-22:2009).\n",
            "subsections": []
        },
        "METHODS": {
            "content": "readtagsfile ( filename )\nRead a file in the syntax of Tags.txt (included with Microsoft VOLT) to obtain\nadditional/replacement tag definitions.\n\nReturns 0 if cannot open the file; else 1.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Bob Hallissy. <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::OTTags - Utilities for TrueType/OpenType tags",
    "flags": [],
    "examples": [],
    "see_also": []
}