1Font::TTF::GDEF(3) User Contributed Perl Documentation Font::TTF::GDEF(3)
2
3
4
6 Font::TTF::GDEF - Opentype GDEF table support
7
9 The GDEF table contains various global lists of information which are
10 apparantly used in other places in an OpenType renderer. But precisely
11 where is open to speculation...
12
14 There are 4 tables in the GDEF table, each with their own structure:
15
16 GLYPH
17 This is an Font::TTF::Coverage Class Definition table containing
18 information as to what type each glyph is.
19
20 ATTACH
21 The attach table consists of a coverage table and then attachment
22 points for each glyph in the coverage table:
23
24 COVERAGE
25 This is a coverage table
26
27 POINTS This is an array of point elements. Each element is an
28 array of curve points corresponding to the attachment
29 points on that glyph. The order of the curve points in the
30 array corresponds to the attachment point number specified
31 in the MARKS coverage table (see below).
32
33 LIG This contains the ligature caret positioning information for liga‐
34 ture glyphs
35
36 COVERAGE
37 A coverage table to say which glyphs are ligatures
38
39 LIGS An array of elements for each ligature. Each element is an
40 array of information for each caret position in the liga‐
41 ture (there being number of components - 1 of these, gener‐
42 ally)
43
44 FMT This is the format of the information and is
45 important to provide the semantics for the
46 value. This value must be set correctly before
47 output
48
49 VAL The value which has meaning according to FMT
50
51 DEVICE For FMT = 3, a device table is also referenced
52 which is stored here
53
54 MARKS
55 Due to confusion in the GDEF specification, this field is currently
56 withdrawn until the confusion is resolved. That way, perhaps this
57 stuff will work!
58
59 This class definition table stores the mark attachment point num‐
60 bers for each attachment mark, to indicate which attachment point
61 the mark attaches to on its base glyph.
62
64 $t->read
65
66 Reads the table into the data structure
67
68 $t->out($fh)
69
70 Writes out this table.
71
72
73
74perl v5.8.8 2005-06-14 Font::TTF::GDEF(3)