Font::TTF::Hmtx(3)
π Font::TTF::Hmtx(3) β Horizontal Metrics π
okay bestie, this is the User Contributed Perl Documentation page for Font::TTF::Hmtx(3) β yes, the horizontal metrics icon. letβs get into it π
β¨ NAME β¨
Font::TTF::Hmtx β Horizontal Metrics
πΈ DESCRIPTION πΈ
It contains the advance width and the left side bearing for each glyph. Because of 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->numMetrics
Calculates again the number of long metrics required to store the information here. Returns undef if the table has not been read.
β $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. not me manifesting bugs, okay? π
π 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.
okay thatβs the whole page, bestie! signed with sparkles from perl v5.42.0, dated 2016-08-28 β bye and go slay those metrics! πβ¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Font-TTF 1.06-bp160.1.12 Β· Artistic-2.0 and OFL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms