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 out‐
12 put 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
26 Reads the horizontal metrics from the TTF file into memory
27
28 $t->numMetrics
29
30 Calculates again the number of long metrics required to store the
31 information here. Returns undef if the table has not been read.
32
33 $t->out($fh)
34
35 Writes the metrics to a TTF file. Assumes that the "hhea" has updated
36 the numHMetrics from here
37
38 $t->update
39
40 Updates the lsb values from the xMin from the each glyph
41
42 $t->out_xml($context, $depth)
43
44 Outputs the table in XML
45
47 None known
48
50 Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
51 and licensing.
52
53
54
55perl v5.8.8 2005-06-14 Font::TTF::Hmtx(3)