Font::TTF::Hhea(3)

πŸ’– Font::TTF::Hhea β€” the Horizontal Header table, bestie ✨

So you're looking at Font::TTF::Hhea(3) β€” welcome, this is the manual page for the module, and honestly? It's a whole vibe. Let's get into it πŸŽ€


🌸 NAME 🌸

Font::TTF::Hhea β€” the Horizontal Header table. That's it, that's the name, iconic.


✨ DESCRIPTION ✨

Okay so this is a simple table. Like, genuinely simple β€” it's just your standard, garden-variety table with the standard instance variables you'd expect, and that's the entire personality. No drama, no plot twists, just standards-specified instance variables sitting there looking pretty πŸ’…


πŸ¦‹ INSTANCE VARIABLES πŸ¦‹

Here's the whole squad, in order, no cap:

  • version
  • Ascender
  • Descender
  • LineGap
  • advanceWidthMax
  • minLeftSideBearing
  • minRightSideBearing
  • xMaxExtent
  • caretSlopeRise
  • caretSlopeRun
  • metricDataFormat
  • numberOfHMetrics

That's twelve little icons, all just vibing in the table ✨


πŸ’œ METHODS πŸ’œ

🫢 $t->read

Reads the table into memory as instance variables. Basically it's the "hey bestie, come in, sit down" of methods 😌

🫢 $t->out($fh)

Writes the table to a file β€” either straight from memory, or by copying. Pick your fighter, both are valid.

🫢 $t->minsize()

Returns the minimum size this table can be. And listen β€” if the table ends up smaller than that? It means the table is bad, and you should delete it or whatever. Lowkey a glow-up-by-deletion situation πŸ’€

🫢 $t->update

Updates various parameters in the hhea table from the hmtx table. Teamwork, making the dream work 🀝


😭 BUGS 😭

None known. None. Known. We stay unproblematic ✨


πŸ‘‘ AUTHOR πŸ‘‘

Martin Hosken <http://scripts.sil.org/FontUtils>. β€” an absolute legend, fr fr 🫢


🌈 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. Read it, bestie, it's giving responsible main character energy πŸ’…


ok that's the whole page!! go forth and header horizontally πŸ¦‹πŸ’–

perl v5.42.0 Β· 2016-08-28 β€” mwah, that's the version and date, sealed with a kiss πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from