Font::TTF::Hdmx(3)

πŸ’– Font::TTF::Hdmx β€” Horizontal device metrics πŸ’–

User Contributed Perl Documentation β€” okay bestie, this is the Font::TTF::Hdmx page and we’re getting into it. 🫢

✨ NAME ✨

Font::TTF::Hdmx β€” Horizontal device metrics. That’s the name, that’s the game. πŸ’…

🌸 DESCRIPTION 🌸

Okay so the table is literally a hash of device metric tables, indexed by the ppem for that subtable. Each subtable is an array of advance widths in pixels for each glyph at that ppem β€” horizontally, bestie. No cap, it’s giving horizontal device metrics. βœ¨πŸ’–

πŸ” INSTANCE VARIABLES πŸ”

Individual metrics are accessed using the following referencing, bestie:

$f->{'hdmx'}{$ppem}[$glyph_num]

In addition, there is one instance variable:

  • Num β€” number of device tables. πŸ’–

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

πŸ’« $t->read πŸ’«

Reads the table into data structures. Slay. πŸ¦‹

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

Outputs the device metrics for this font. πŸ’…

πŸ’« $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. Like, absolutely bye to that table. πŸ’€

πŸ’« $t->tables_do(&func) πŸ’«

For each subtable it calls &sub($ref, $ppem). πŸŽ€

πŸ’« $t->XML_element($context, $depth, $key, $value) πŸ’«

Outputs device metrics a little more tidily. ✨

πŸ› BUGS πŸ›

None known. That’s the whole bug report, bestie. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Martin Hosken <http://scripts.sil.org/FontUtils>. Iconic. πŸ’œ

πŸ“œ 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. πŸŽ€


Signing off from the perl v5.42.0 era, dated 2016-08-28, with Font::TTF::Hdmx(3) energy β€” bye bestie, hydrate and go format something cute! πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from