| PDF-API3 documentation | Contained in the PDF-API3 distribution. |
PDF::API3::Compat::API2::Basic::TTF::Vmtx - Vertical Metrics
Contains the advance height and top side bearing for each glyph. Given the compressability of the data onto disk, this table uses information from other tables, and thus must do part of its output during the output of other tables
The vertical metrics are kept in two arrays by glyph id. The variable names do not start with a space
An array containing the advance height for each glyph
An array containing the top side bearing for each glyph
Reads the vertical metrics from the TTF file into memory
Writes the metrics to a TTF file. Assumes that the vhea has updated the
numVMetrics from here
None known
Martin Hosken Martin_Hosken@sil.org. See PDF::API3::Compat::API2::Basic::TTF::Font for copyright and licensing.
| PDF-API3 documentation | Contained in the PDF-API3 distribution. |
#======================================================================= # ____ ____ _____ _ ____ ___ ____ # | _ \| _ \| ___| _ _ / \ | _ \_ _| |___ \ # | |_) | | | | |_ (_) (_) / _ \ | |_) | | __) | # | __/| |_| | _| _ _ / ___ \| __/| | / __/ # |_| |____/|_| (_) (_) /_/ \_\_| |___| |_____| # # A Perl Module Chain to faciliate the Creation and Modification # of High-Quality "Portable Document Format (PDF)" Files. # #======================================================================= # # THIS IS A REUSED PERL MODULE, FOR PROPER LICENCING TERMS SEE BELOW: # # # Copyright Martin Hosken <Martin_Hosken@sil.org> # # No warranty or expression of effectiveness, least of all regarding # anyone's safety, is implied in this software or documentation. # # This specific module is licensed under the Perl Artistic License. # # # $Id: Vmtx.pm,v 2.0 2005/11/16 02:16:00 areibens Exp $ # #======================================================================= package PDF::API3::Compat::API2::Basic::TTF::Vmtx;
use strict; use vars qw(@ISA); require PDF::API3::Compat::API2::Basic::TTF::Hmtx; @ISA = qw(PDF::API3::Compat::API2::Basic::TTF::Hmtx);
sub read { my ($self) = @_; my ($numh, $numg); $numh = $self->{' PARENT'}{'vhea'}->read->{'numberOfVMetrics'}; $numg = $self->{' PARENT'}{'maxp'}->read->{'numGlyphs'}; $self->_read($numg, $numh, "advance", "top"); }
sub out { my ($self, $fh) = @_; my ($numg) = $self->{' PARENT'}{'maxp'}{'numGlyphs'}; my ($numh) = $self->{' PARENT'}{'vhea'}{'numberOfVMetrics'}; $self->_out($fh, $numg, $numh, "advance", "top"); } 1;