Font::TTF::Post(3)
π NAME π
Font::TTF::Post - Holds the Postscript names for each glyph. Okay bestie, this is the User Contributed Perl Documentation page for Font::TTF::Post(3), and it is literally the module that holds the Postscript names for each glyph. π
β¨ DESCRIPTION β¨
So this module holds the postscript names for glyphs. Important vibe check: they are not held as an array β they are held as indexes into two lists. The first list is the standard Postscript name list defined by the TrueType standard. The second list comes from the font directly. π¦
Looking up a glyph from a Postscript name, or a name from a glyph number, is achieved through methods rather than variable lookup. No cap.
This class handles PostScript table types of 1, 2, 2.5 & 3, but not version 4. Support for version 2.5 is as per Apple spec rather than MS. π
The way to look up Postscript names or glyphs is:
$pname = $f->{'post'}{'VAL'}[$gnum];
$gnum = $f->{'post'}{'STRINGS'}{$pname};
π INSTANCE VARIABLES π
Due to different systems having different limitations, there are various class variables available to control what post table types can be written. (System drama, honestly.) π
$Font::TTF::Post::no25β if set, this tellsFont::TTF::Post::outto use table type2instead of2.5in case apps cannot handle version2.5. πVALβ contains an array indexed by glyph number of Postscript names. This is used when writing out a font. πSTRINGSβ an associative array of Postscript names mapping to the highest glyph with that name. These may not be in sync withVAL. π
In addition there are the standard introductory variables defined in the standard:
FormatTypeitalicAngleunderlinePositionunderlineThicknessisFixedPitchminMemType42maxMemType42minMemType1maxMemType1
π¦ METHODS π¦
$t->read
Reads the Postscript table into memory from disk. πΎ
$t->out($fh)
Writes out a new Postscript name table from memory or copies from disk. β¨
$t->XML_element($context, $depth, $key, $val)
Outputs the names as one block of XML. π
$t->minsize()
Returns the minimum size this table can be. If it is smaller than this, then the table must be bad and should be deleted or whatever. π
π BUGS π
- No support for type
4tables. π
πΈ 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 bestie, that's the whole page! π This one is perl v5.42.0, dated 2016-08-28, and it's the Font::TTF::Post(3) manual 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