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:numGlyphsis foundational, so the application has to keep it up to date.updatedoes 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:
numGlyphsmaxPointsmaxContoursmaxCompositePointsmaxCompositeContoursmaxZonesmaxTwilightPointsmaxStoragemaxFunctionDefsmaxInstructionDefsmaxStackElementsmaxSizeOfInstructionsmaxComponentElementsmaxComponentDepth
π 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
- 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