Imager...eeType2(3pm)

🌸 Imager::Font::FreeType2 β€” NAME 🌸

ok so bestie, this is Imager::Font::FreeType2 β€” the low-level FreeType2 text output girlies πŸ’… like it's the backstage pass, not the front door.


✨ DESCRIPTION ✨

So here's the tea πŸ«– β€” Imager::Font literally just creates an Imager::Font::FreeType2 object whenever it's asked to. Like, it doesn't even ask questions, it just does it. main character energy fr fr πŸ‘‘

Wanna know how to actually use this type? Go peek at Imager::Font, that's where the vibe check happens πŸ¦‹

This class is giving low-level functions realness β€” and the catch (iykyk 😭) is that the caller has to do all the data validation themselves. No hand-holding, no guardrails, you're on your own babe. πŸ’€

Here's what this driver supports, no cap:

  • transform()
  • dpi()
  • draw() β€” and bestie, draw() takes these parameters:
    • "utf8"
    • "vlayout"
    • "sizew"

πŸŽ€ Special behaviors πŸŽ€

okay this is the important bit, don't scroll past πŸ™ˆ

If you call transform() to set a transformation matrix, hinting gets switched off. Periodt. And why, you ask? Because that stops the text from suddenly jumping in size β€” the hinting does that when the transformation is the identity matrix, and it's giving glitchy 😭

But like… if for some reason you actually want hinting enabled? Totally valid. Just hit it with:

$font->hinting(hinting=>1)

to re-enable it πŸ’– β€” and heads up, you gotta call that after every single call to transform(). Every. One. No skipping. 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Addi, Tony β€” icon, legend, the moment ⭐


✨ that's the whole page bestie, slay ✨

🌸 this was brought to you by perl v5.42.3, dated 2026-08-19 β€” mwah, catch you in the next manpage πŸ’‹πŸŽ€

πŸ“¦ where this page comes from