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->minsize()
47       Returns the minimum size this table can be. If it is smaller than this,
48       then the table must be bad and should be deleted or whatever.
49
50   $t->XML_element($context, $depth, $key, $value)
51       Handles date process for the XML exporter
52
53   $t->update
54       Updates the head table based on the glyph data and the hmtx table
55
56   $t->getdate($is_create)
57       Converts font modification time (or creation time if $is_create is set)
58       to a 32-bit integer as returned from time(). Returns undef if the value
59       is out of range, either before the epoch or after the maximum storable
60       time.
61
62   $t->setdate($time, $is_create)
63       Sets the time information for modification (or creation time if
64       $is_create is set) according to the 32-bit time information.
65

BUGS

67       None known
68

AUTHOR

70       Martin Hosken <http://scripts.sil.org/FontUtils>.
71

LICENSING

73       Copyright (c) 1998-2016, SIL International (http://www.sil.org)
74
75       This module is released under the terms of the Artistic License 2.0.
76       For details, see the full text of the license in the file LICENSE.
77
78
79
80perl v5.32.1                      2021-01-27                Font::TTF::Head(3)
Impressum