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