Font::TTF::GDEF(3)
Font::TTF::GDEF(3) β User Contributed Perl Documentation πβ¨
πΈ NAME πΈ
Font::TTF::GDEF β Opentype GDEF table support π
β¨ DESCRIPTION β¨
Okay bestie, lowkey gather round: the GDEF table contains various global lists of information which are apparantly used in other places in an OpenType renderer. Not me reading the original typo and keeping the vibe intact π. But precisely where? Open to speculation... fr fr. π₯
π INSTANCE VARIABLES π
There are up to 5 tables in the GDEF table, each with their own structure. Vibe check:
π¦ GLYPH π¦
This is a Font::TTF::Coverage Class Definition table containing information as to what type each glyph is. Iconic.
π¦ ATTACH π¦
The attach table consists of a coverage table and then attachment points for each glyph in the coverage table:
COVERAGE
This is a coverage table.
POINTS
This is an array of point elements. Each element is an array of curve points corresponding to the attachment points on that glyph. The order of the curve points in the array corresponds to the attachment point number specified in the MARKS coverage table (see below). π
π¦ LIG π¦
This contains the ligature caret positioning information for ligature glyphs. Periodt.
COVERAGE
A coverage table to say which glyphs are ligatures.
LIGS
An array of elements for each ligature. Each element is an array of information for each caret position in the ligature (there being number of components - 1 of these, generally). π
FMTβ This is the format of the information and is important to provide the semantics for the value. This value must be set correctly before output. No pressure, but pressure π.VALβ The value which has meaning according toFMT.DEVICEβ ForFMT = 3, a device table is also referenced which is stored here. π«Ά
π¦ MARKS π¦
This class definition table defines the classes of mark glyphs that can be selected for processing using the MarkAttachmentType field of lookup FLAG words.
π¦ MARKSETS π¦
Contains an array of coverage tables indexed by the FILTER value of a lookup. Iykyk.
π§ METHODS π§
π§ $t->read π§
Reads the table into the data structure. Main character energy.
π§ $t->out($fh) π§
Writes out this table.
π§ $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. π Literally.
π§ $t->update π§
Sort COVERAGE tables. Slay.
π AUTHOR π
Martin Hosken <http://scripts.sil.org/FontUtils> β yes bestie, thatβs the author and the URL exactly as the page gives it. π«Ά
π 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 thatβs the whole page, bestie. This little manpage moment came from perl v5.42.0, dated 2016-08-28, and itβs Font::TTF::GDEF(3) β 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