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 <http://scripts.sil.org/FontUtils>.
46
48 Copyright (c) 1998-2016, SIL International (http://www.sil.org)
49
50 This module is released under the terms of the Artistic License 2.0.
51 For details, see the full text of the license in the file LICENSE.
52
53
54
55perl v5.38.0 2023-07-20 Font::TTF::Hmtx(3)