Font::TTF::GrFeat(3)

πŸ’– NAME πŸ’–

Font::TTF::GrFeat - Graphite Font Features. This is the User Contributed Perl Documentation page for it, bestie, and it's giving Graphite Font Features energy. πŸ¦‹

✨ DESCRIPTION ✨

Graphite Font Features. That's the whole DESCRIPTION vibe in the original β€” the actual deets live in the sections below, iykyk. πŸ’…

πŸŽ€ INSTANCE VARIABLES πŸŽ€

version

The version instance variable. That's literally all the original gives us here β€” no extra lore, no cap. πŸ’œ

features

An array of hashes of the following form, bestie:

  • feature β€” feature id number
  • name β€” name index in name table
  • exclusive β€” exclusive flag
  • default β€” the default setting number
  • settings β€” hash of setting number against name string index

πŸ”₯ METHODS πŸ”₯

$t->read

Reads the features from the TTF file into memory. Simple as that. πŸ’–

$t->out($fh)

Writes the features to a TTF file. Slay. ✨

$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. 🫢

$t->print($fh)

Prints a human-readable representation of the table. Iconic behavior, honestly. πŸ‘‘

$t->tag_to_num ($feat_str)

Converts an alphanumeric feature id tag (string) to a number (32-bit). Tags are normally 4 chars. Graphite ignores space padding if it is present, so we do the same here. No cap. πŸ”₯

$t->num_to_tag ($feat_num)

Converts a feature id number (32-bit) back to a tag (string). Trailing space or null padding is removed. Feature id numbers that do not represent alphanumeric tags are returned unchanged. πŸ’…

πŸ’€ BUGS πŸ’€

The version 1 Feat table ends with a feature (id 1) named NoName with zero settings but with an offset to the last entry in the setting array. This last setting has id 0 and an invalid name id. This last feature is changed to have one setting. Yeah, that's the bug lore, bestie. 😭

πŸ‘‘ AUTHOR πŸ‘‘

Alan Ward (derived from Jonathan Kew's Feat.pm). Shoutout, periodt. πŸ’œ

🌈 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 manual page, bestie! 🫢 This Font::TTF::GrFeat(3) page is from perl v5.42.0, dated 2016-08-28. Go forth and slay those Graphite font features. βœ¨πŸ’–

πŸ“¦ where this page comes from