1Font::TTF::GrFeat(3) User Contributed Perl Documentation Font::TTF::GrFeat(3)
2
3
4
6 Font::TTF::GrFeat - Graphite Font Features
7
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
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->minsize()
34 Returns the minimum size this table can be. If it is smaller than this,
35 then the table must be bad and should be deleted or whatever.
36
37 $t->print($fh)
38 Prints a human-readable representation of the table
39
40 $t->tag_to_num ($feat_str)
41 Convert an alphanumeric feature id tag (string) to a number (32-bit).
42 Tags are normally 4 chars. Graphite ignores space padding if it is
43 present, so we do the same here.
44
45 $t->num_to_tag ($feat_num)
46 Convert a feature id number (32-bit) back to a tag (string). Trailing
47 space or null padding is removed. Feature id numbers that do not
48 represent alphanumeric tags are returned unchanged.
49
51 The version 1 Feat table ends with a feature (id 1) named NoName with
52 zero settings but with an offset to the last entry in the setting
53 array. This last setting has id 0 and an invalid name id. This last
54 feature is changed to have one setting.
55
57 Alan Ward (derived from Jonathan Kew's Feat.pm).
58
60 Copyright (c) 1998-2016, SIL International (http://www.sil.org)
61
62 This module is released under the terms of the Artistic License 2.0.
63 For details, see the full text of the license in the file LICENSE.
64
65
66
67perl v5.30.0 2019-07-26 Font::TTF::GrFeat(3)