1Font::TTF::Head(3) User Contributed Perl Documentation Font::TTF::Head(3)
2
3
4
6 Font::TTF::Head - The head table for a TTF Font
7
9 This is a very basic table with just instance variables as described in
10 the TTF documentation, using the same names. One of the most commonly
11 used is "unitsPerEm".
12
14 The "head" table has no internal instance variables beyond those common
15 to all tables and those specified in the standard:
16
17 version
18 fontRevision
19 checkSumAdjustment
20 magicNumber
21 flags
22 unitsPerEm
23 created
24 modified
25 xMin
26 yMin
27 xMax
28 yMax
29 macStyle
30 lowestRecPPEM
31 fontDirectionHint
32 indexToLocFormat
33 glyphDataFormat
34
35 The two dates are held as an array of two unsigned longs (32-bits)
36
38 $t->read
39
40 Reads the table into memory thanks to some utility functions
41
42 $t->out($fh)
43
44 Writes the table to a file either from memory or by copying. If in mem‐
45 ory (which is usually) the checkSumAdjustment field is set to 0 as per
46 the default if the file checksum is not to be considered.
47
48 $t->XML_element($context, $depth, $key, $value)
49
50 Handles date process for the XML exporter
51
52 $t->update
53
54 Updates the head table based on the glyph data and the hmtx table
55
56 $t->getdate($is_create)
57
58 Converts font modification time (or creation time if $is_create is set)
59 to a 32-bit integer as returned from time(). Returns undef if the value
60 is out of range, either before the epoch or after the maximum storable
61 time.
62
63 $t->setdate($time, $is_create)
64
65 Sets the time information for modification (or creation time if
66 $is_create is set) according to the 32-bit time information.
67
69 None known
70
72 Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
73 and licensing.
74
75
76
77perl v5.8.8 2005-06-14 Font::TTF::Head(3)