1 package Font::TTF::Vmtx;
5 Font::TTF::Vmtx - Vertical Metrics
9 Contains the advance height and top side bearing for each glyph. Given the
10 compressability of the data onto disk, this table uses information from
11 other tables, and thus must do part of its output during the output of
14 =head1 INSTANCE VARIABLES
16 The vertical metrics are kept in two arrays by glyph id. The variable names
17 do not start with a space
23 An array containing the advance height for each glyph
27 An array containing the top side bearing for each glyph
37 require Font::TTF::Hmtx;
39 @ISA = qw(Font::TTF::Hmtx);
44 Reads the vertical metrics from the TTF file into memory
53 $numh = $self->{' PARENT'}{'vhea'}->read->{'numberOfVMetrics'};
54 $numg = $self->{' PARENT'}{'maxp'}{'numGlyphs'};
55 $self->_read($numg, $numh, "advance", "top");
61 Writes the metrics to a TTF file. Assumes that the C<vhea> has updated the
69 my ($numg) = $self->{' PARENT'}{'maxp'}{'numGlyphs'};
70 my ($numh) = $self->{' PARENT'}{'vhea'}{'numberOfVMetrics'};
71 $self->_out($fh, $numg, $numh, "advance", "top");
82 Martin Hosken Martin_Hosken@sil.org. See L<Font::TTF::Font> for copyright and