Font::TTF::OTTags(3)
π Font::TTF::OTTags(3) β User Contributed Perl Documentation π
π NAME π
Font::TTF::OTTags β Utilities for TrueType/OpenType tags, bestie. It's literally the tag-y little helper module.
β¨ SYNOPSIS β¨
okay so here's the vibe, code and all:
use Font::TTF::OTTags qw( %tttags %ttnames %iso639 readtagsfile );
# Look at built-in stuff:
$script_tag = $tttags{'SCRIPT'}{'Cypriot Syllabary'}; # returns 'cprt'
$lang_name = $ttnames{'LANGUAGE'}{'ALT '}; # returns 'Altai'
# Map iso639-2 tag to/from OT lang tag
@isotags = $iso639{'ALT '}; # returns [ 'atv', 'alt' ]
$lang_tag = $iso639{'atv'}; # returns 'ALT '
# Read latest tags file to add to built-in definitions
readtagsfile ("C:\\Program Files\\Microsoft VOLT\\TAGS.txt");
First-level keys to %tttags and %ttnames are:
SCRIPTβ retrieve script tag or nameLANGUAGEβ retrieve language tag or nameFEATUREβ retrieve feature tag or name
Built-in data has been derived from the 2014-07-11 draft of the 3rd edition of ISO/IEC 14496-22 (Information technology - Coding of audio-visual objects - Part 22: Open Font Format) which, when finalized and approved, will replace the second edition (ISO/IEC 14496-22:2009). That's the whole lore drop, bestie. π
π οΈ METHODS π οΈ
π§ readtagsfile ( filename ) π§
Read a file in the syntax of Tags.txt (included with Microsoft VOLT) to obtain additional/replacement tag definitions. It's giving "bring your own tag list" energy.
Returns 0 if cannot open the file; else 1.
πΈ AUTHOR πΈ
Bob Hallissy. <http://scripts.sil.org/FontUtils>.
π LICENSING π
Copyright (c) 1998-2016, SIL International (http://www.sil.org)
This module is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.
okay that's the whole page, bestie β this was perl v5.42.0, dated 2016-08-28, and the manual page is Font::TTF::OTTags(3). mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Font-TTF 1.06-bp160.1.12 Β· Artistic-2.0 and OFL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms