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

NAME

6       Font::TTF::GrFeat - Graphite Font Features
7

DESCRIPTION

INSTANCE VARIABLES

10       version
11       features
12           An array of hashes of the following form
13
14           feature feature id number
15
16           name    name index in name table
17
18           exclusive
19                   exclusive flag
20
21           default the default setting number
22
23           settings
24                   hash of setting number against name string index
25

METHODS

27   $t->read
28       Reads the features from the TTF file into memory
29
30   $t->out($fh)
31       Writes the features to a TTF file
32
33   $t->print($fh)
34       Prints a human-readable representation of the table
35
36   $t->tag_to_num ($feat_str)
37       Convert an alphanumeric feature id tag (string) to a number (32-bit).
38       Tags are normally 4 chars. Graphite ignores space padding if it is
39       present, so we do the same here.
40
41   $t->num_to_tag ($feat_num)
42       Convert a feature id number (32-bit) back to a tag (string).  Trailing
43       space or null padding is removed.  Feature id numbers that do not
44       represent alphanumeric tags are returned unchanged.
45

BUGS

47       The version 1 Feat table ends with a feature (id 1) named NoName with
48       zero settings but with an offset to the last entry in the setting
49       array. This last setting has id 0 and an invalid name id. This last
50       feature is changed to have one setting.
51

AUTHOR

53       Alan Ward (derived from Jonathan Kew's Feat.pm).  See Font::TTF::Font
54       for copyright and licensing.
55
56
57
58perl v5.16.3                      2012-08-29              Font::TTF::GrFeat(3)
Impressum