Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Font::TTF::Hmtx

Name Font::TTF::Hmtx
Version
Located at /usr/local/share/perl5
File /usr/local/share/perl5/Font/TTF/Hmtx.pm
Is Core No
Search CPAN for this module Font::TTF::Hmtx
Documentation Font::TTF::Hmtx
Module Details Font::TTF::Hmtx

NAME

Font::TTF::Hmtx - Horizontal Metrics


DESCRIPTION

Contains the advance width and left 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


INSTANCE VARIABLES

The horizontal metrics are kept in two arrays by glyph id. The variable names do not start with a space

advance
An array containing the advance width for each glyph

lsb
An array containing the left side bearing for each glyph


METHODS

$t->read

Reads the horizontal metrics from the TTF file into memory

$t->out($fh)

Writes the metrics to a TTF file. Assumes that the hhea has updated the numHMetrics from here

$t->update

Updates the lsb values from the xMin from the each glyph

$t->out_xml($context, $depth)

Outputs the table in XML


BUGS

None known


AUTHOR

Martin Hosken http://scripts.sil.org/FontUtils.


LICENSING

Copyright (c) 1998-2016, SIL International (http://www.sil.org)

This module is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024