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

NAME

6       Font::TTF::Head - The head table for a TTF Font
7

DESCRIPTION

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

INSTANCE VARIABLES

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

METHODS

38   $t->read
39       Reads the table into memory thanks to some utility functions
40
41   $t->out($fh)
42       Writes the table to a file either from memory or by copying. If in
43       memory (which is usually) the checkSumAdjustment field is set to 0 as
44       per the default if the file checksum is not to be considered.
45
46   $t->XML_element($context, $depth, $key, $value)
47       Handles date process for the XML exporter
48
49   $t->update
50       Updates the head table based on the glyph data and the hmtx table
51
52   $t->getdate($is_create)
53       Converts font modification time (or creation time if $is_create is set)
54       to a 32-bit integer as returned from time(). Returns undef if the value
55       is out of range, either before the epoch or after the maximum storable
56       time.
57
58   $t->setdate($time, $is_create)
59       Sets the time information for modification (or creation time if
60       $is_create is set) according to the 32-bit time information.
61

BUGS

63       None known
64

AUTHOR

66       Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
67       and licensing.
68
69
70
71perl v5.16.3                      2012-08-21                Font::TTF::Head(3)
Impressum