Font::TTF::EBDT(3)

πŸ’– Font::TTF::EBDT(3) β€” embedded bitmap data table energy πŸ’–

okay so bestie, this is the Font::TTF::EBDT(3) page, and yes it’s a User Contributed Perl Documentation moment. We’re talking about the embedded bitmap data table, and it’s lowkey all about metrics + image data. ✨

✨ NAME ✨

Font::TTF::EBDT - Embeeded Bitmap Data Table

the Embeeded spelling is literally right there in the page, so we’re keeping it. no cap. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Contains the metrics and bitmap image data. That’s it, that’s the vibe: metrics and bitmap image data, together at last. πŸ’…

πŸ’– INSTANCE VARIABLES πŸ’–

Only has 'bitmap' instance variable. It is an array of assosiative array keyed by glyph-id. The element is an object which consists of metric information and image data.

πŸŽ€ bitmap object πŸŽ€

  • format β€” Only 7 is supported.
  • height
  • width
  • horiBearingX
  • horiBearingY
  • horiAdvance
  • vertBearingX
  • vertBearingY
  • vertAdvance
  • imageData

πŸ’… METHODS πŸ’…

🌸 $t->read 🌸

Reads the embedded bitmap data from the TTF file into memory. This routine should be called _after_ {'EBLC'}->read.

bestie, that _after_ is doing a lot of work β€” do the {'EBLC'}->read first, fr fr. 🫢

πŸ”₯ $t->update πŸ”₯

Update EBLC information using EBDT data. Slay.

πŸŽ€ $t->out($fh) πŸŽ€

Outputs the bitmap data of embedded bitmap for this font.

πŸ’€ BUGS πŸ’€

Only Format 7 is implemented. XML output is not supported (yet).

so if you were hoping for XML output, that’s a not supported (yet) situation. 😭

πŸ‘‘ AUTHOR πŸ‘‘

NIIBE Yutaka <mailto:gniibe@fsij.org>. This was written at the CodeFest Akihabara 2006 hosted by FSIJ.

?? patch sent with licensing requirements or not?

🌈 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 β€” shoutout to perl v5.42.0 and the 2016-08-28 date stamp. periodt. πŸ’–

πŸ“¦ where this page comes from