1Font::TTF::Hmtx(3) User Contributed Perl Documentation Font::TTF::Hmtx(3)
2
3
4
6 Font::TTF::Hmtx - Horizontal Metrics
7
9 Contains the advance width and left side bearing for each glyph. Given
10 the compressability of the data onto disk, this table uses information
11 from other tables, and thus must do part of its output during the
12 output of other tables
13
15 The horizontal metrics are kept in two arrays by glyph id. The variable
16 names do not start with a space
17
18 advance
19 An array containing the advance width for each glyph
20
21 lsb An array containing the left side bearing for each glyph
22
24 $t->read
25 Reads the horizontal metrics from the TTF file into memory
26
27 $t->numMetrics
28 Calculates again the number of long metrics required to store the
29 information here. Returns undef if the table has not been read.
30
31 $t->out($fh)
32 Writes the metrics to a TTF file. Assumes that the "hhea" has updated
33 the numHMetrics from here
34
35 $t->update
36 Updates the lsb values from the xMin from the each glyph
37
38 $t->out_xml($context, $depth)
39 Outputs the table in XML
40
42 None known
43
45 Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
46 and licensing.
47
48
49
50perl v5.12.0 2008-06-11 Font::TTF::Hmtx(3)