Font::TTF::Maxp(3)

πŸ’– Font::TTF::Maxp(3) β€” Maximum Profile table, bestie πŸ’–

okay so this is the Font::TTF::Maxp(3) page from the User Contributed Perl Documentation, and we’re doing a full vibe check on the Maximum Profile table in a font. No cap, it’s a short one and it ate. ✨


πŸ’– NAME πŸ’–

Font::TTF::Maxp β€” Maximum Profile table in a font πŸ¦‹

πŸŽ€ DESCRIPTION πŸŽ€

It’s literally a collection of useful instance variables that follow the TTF standard. The one people use the most is probably numGlyphs, iykyk.

Heads up, bestie: numGlyphs is foundational, so the application has to keep it up to date. update does not update this particular value. πŸ’…

It handles table versions 0.5 and 1.0. Periodt.

✨ INSTANCE VARIABLES ✨

No other instance variables beyond the ones specified in the standard β€” here’s the whole lineup:

  • numGlyphs
  • maxPoints
  • maxContours
  • maxCompositePoints
  • maxCompositeContours
  • maxZones
  • maxTwilightPoints
  • maxStorage
  • maxFunctionDefs
  • maxInstructionDefs
  • maxStackElements
  • maxSizeOfInstructions
  • maxComponentElements
  • maxComponentDepth

πŸŽ€ METHODS πŸŽ€

🌸 $t->read 🌸

Reads the table into memory. Lowkey essential. 🧚

πŸ¦‹ $t->out($fh) πŸ¦‹

Writes the table to a file, either from memory or by copying. Slay. πŸ’Ύ

πŸ’… $t->minsize() πŸ’…

Returns the minimum size this table can be. If it’s smaller than this, then the table must be bad and should be deleted or whatever. Not me being dramatic β€” that’s literally the rule. 😭

⭐ $t->update ⭐

Calculates all the maximum values for a font based on the glyphs in the font. Only the fields that require hinting code interpretation are ignored and left as they were read. That’s the whole tea. 🍡

πŸ’€ BUGS πŸ’€

None known. Iconic behavior, honestly. πŸ‘‘

πŸ‘‘ 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. πŸ“œ


That’s the whole page, bestie β€” served fresh from perl v5.42.0, dated 2016-08-28, and it’s the Font::TTF::Maxp(3) page. Mwah! πŸ’‹βœ¨

πŸ“¦ where this page comes from