Font::TTF::Vmtx(3)

🌸 NAME 🌸

okay so bestie, you're looking at Font::TTF::Vmtx(3) β€” the Vertical Metrics module, and yes it's a User Contributed Perl Documentation page. It's giving "the table that knows how tall your glyphs are feeling today" energy, but make it font-internal, iykyk. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

This thing contains the advance height and top 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. No cap β€” it's a team player. ✨

πŸŽ€ INSTANCE VARIABLES πŸŽ€

The vertical metrics are kept in two arrays by glyph id. The variable names do not start with a space β€” literally, that's a detail, don't come for me.

  • advance β€” an array containing the advance height for each glyph.
  • top β€” an array containing the top side bearing for each glyph.

πŸ’« METHODS πŸ’«

🧚 $t->read 🧚

Reads the vertical metrics from the TTF file into memory. Simple, iconic, does what it says. πŸ’–

🫢 $t->out($fh) 🫢

Writes the metrics to a TTF file. Assumes that "vhea" has updated the numVMetrics from here. That's the whole vibe check for this one. 🌈

πŸ’€ BUGS πŸ’€

None known. (Yes, bestie, "none known" is the entire bug report β€” I'm as shook as you are. 😭)

πŸ‘‘ 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 bye bestie β€” source/version: perl v5.42.0, date: 2016-08-28 πŸŽ€πŸ’–

πŸ“¦ where this page comes from