Font::TTF::OldMort(3)

✨ NAME ✨

Font::TTF::OldMort β€” Glyph Metamorphosis table in a font. This page is from the User Contributed Perl Documentation, bestie, and it’s all about that table.

πŸ’… DESCRIPTION πŸ’…

Okay so there’s literally no extra description text here β€” the NAME already gave you the whole Glyph Metamorphosis table in a font vibe. The actual detail starts in INSTANCE VARIABLES, so let’s go πŸ¦‹.

🧚 INSTANCE VARIABLES 🧚

Here’s the field-by-field tea β˜• β€” all the names and values stay exactly as the original lists them.

  • version β€” table version number (Fixed: currently 1.0)
  • chains β€” list of metamorphosis chains, each of which has its own fields:
    • defaultFlags β€” chain's default subfeature flags (UInt32)
    • featureEntries β€” list of feature entries, each of which has fields:
      • type
      • setting
      • enable
      • disable
    • subtables β€” list of metamorphosis subtables, each of which has fields:
      • type β€” subtable type (0: rearrangement; 1: contextual substitution; 2: ligature; 4: non-contextual substitution; 5: insertion)
      • direction β€” processing direction ('LR' or 'RL')
      • orientation β€” applies to text in which orientation ('VH', 'V', or 'H')
      • subFeatureFlags β€” the subfeature flags controlling whether the table is used (UInt32)
      • Further fields depend on the type of subtable:
        • Rearrangement table:
          • classes β€” array of lists of glyphs
          • states β€” array of arrays of hashes{'nextState', 'flags'}
        • Contextual substitution table:
          • classes β€” array of lists of glyphs
          • states β€” array of array of hashes{'nextState', 'flags', 'actions'}, where actions is an array of two elements which are offsets to be added to [marked, current] glyph to get index into mappings (or undef if no mapping to be applied)
          • mappings β€” list of glyph codes mapped to through the state table mappings
        • Ligature table: β€” no extra fields are listed here in the original
        • Non-contextual substitution table: β€” no extra fields are listed here in the original
        • Insertion table: β€” no extra fields are listed here in the original

πŸ› οΈ METHODS πŸ› οΈ

πŸ’– $t->read

Reads the table into memory. That’s the whole assignment, bestie.

πŸ’– $t->out($fh)

Writes the table to a file either from memory or by copying. Both routes are in the original, so we keep both.

πŸ’– $t->print($fh)

Prints a human-readable representation of the table. Very β€œlet me see the table with my own eyes” energy.

πŸ’€ BUGS πŸ’€

None known. That’s it β€” the original says None known, periodt.

πŸ‘‘ AUTHOR πŸ‘‘

Jonathan Kew <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.


mwah πŸ’– this page came from perl v5.42.0 and is dated 2016-08-28 β€” periodt.

πŸ“¦ where this page comes from