1Font::TTF::OTTags(3)  User Contributed Perl Documentation Font::TTF::OTTags(3)
2
3
4

NAME

6       Font::TTF::OTTags - Utilities for TrueType/OpenType tags
7

SYNOPSIS

9         use Font::TTF::OTTags qw( %tttags %ttnames %iso639 readtagsfile );
10
11         # Look at built-in stuff:
12         $script_tag = $tttags{'SCRIPT'}{'Cypriot Syllabary'};  # returns 'cprt'
13         $lang_name = $ttnames{'LANGUAGE'}{'ALT '};             # returns 'Altai'
14
15         # Map iso639-2 tag to/from OT lang tag
16         @isotags = $iso639{'ALT '};    # returns [ 'atv', 'alt' ]
17         $lang_tag = $iso639{'atv'};    # returns 'ALT '
18
19         # Read latest tags file to add to built-in definitions
20         readtagsfile ("C:\\Program Files\\Microsoft VOLT\\TAGS.txt");
21
22       First-level keys to %tttags and %ttnames are:
23
24       SCRIPT
25           retrieve script tag or name
26
27       LANGUAGE
28           retrieve language tag or name
29
30       FEATURE
31           retrieve feature tag or name
32
33       Built-in data has been derived from the 2014-07-11 draft of the 3rd
34       edition of ISO/IEC 14496-22 (Information technology - Coding of audio-
35       visual objects - Part 22: Open Font Format) which, when finalized and
36       approved, will replace the second edition (ISO/IEC 14496-22:2009).
37

METHODS

39   readtagsfile ( filename )
40       Read a file in the syntax of Tags.txt (included with Microsoft VOLT) to
41       obtain additional/replacement tag definitions.
42
43       Returns 0 if cannot open the file; else 1.
44

AUTHOR

46       Bob Hallissy. <http://scripts.sil.org/FontUtils>.
47

LICENSING

49       Copyright (c) 1998-2016, SIL International (http://www.sil.org)
50
51       This module is released under the terms of the Artistic License 2.0.
52       For details, see the full text of the license in the file LICENSE.
53
54
55
56perl v5.36.0                      2023-01-20              Font::TTF::OTTags(3)
Impressum