Pango::FontMap(3)

πŸ’… Pango::FontMap

Okay bestie, so this is the Pango::FontMap page from the User Contributed Perl Documentation β€” it's basically a little wrapper situation around PangoFontMap, and honestly it's giving "small but mighty" energy. Let's get into it 🫢


✨ NAME ✨

Pango::FontMap β€” the wrapper for PangoFontMap. That's it, that's the name, no notes πŸ’…


🌸 HIERARCHY 🌸

So here's the family tree, and yes, it's a whole lineage moment:

  Glib::Object
  +----Pango::FontMap

Like, Glib::Object is the parent and Pango::FontMap is the main character child ✨


πŸ¦‹ INTERFACES πŸ¦‹

It's also repping this interface, no cap:

  Glib::Object::_Unregistered::GListModel

πŸŽ€ METHODS πŸŽ€

πŸ“ list = $fontmap->list_families

You call this and you get back a list of families. Simple, iconic, does what it says on the tin πŸ’–

🧚 font or undef = $fontmap->load_font ($context, $desc)

Loads up a font. Heads up though β€” it can hand you a font or it can give you undef, so like… vibe check your return value, bestie 😭

The args it takes:

  • $context β€” a Pango::Context πŸ’œ
  • $desc β€” a Pango::FontDescription 🌸

⭐ fontset or undef = $fontmap->load_fontset ($context, $desc, $language)

Same deal, but for a whole fontset, and it can also come back as undef so don't @ me if it does πŸ™ˆ

The args:

  • $context β€” a Pango::Context πŸ’œ
  • $desc β€” a Pango::FontDescription 🌸
  • $language β€” a Pango::Language πŸ¦‹

🌈 PROPERTIES 🌈

Two properties, both fully spelled out with all their flags, because we do not skip details in this house πŸ‘‘

  • 'item-type' β€” type is Glib::GType, default is "Glib::Object", and it's readable / private / static-nick / static-blurb ✨
  • 'n-items' β€” type is Glib::UInt, default is 0, and it's also readable / private / static-nick / static-blurb πŸ’«

πŸ”₯ SEE ALSO πŸ”₯

Go peek at these too, fr fr:

  • Pango
  • Glib::Object

Copyright (C) 2003-2011 by the gtk2-perl team. Respect to the OGs 🫢

This software is licensed under the LGPL. See Pango for a full notice β€” the legal receipts live over there, iykyk πŸ’…


okay that's the whole page, you're officially educated, go forth and load some fonts bestie πŸ¦‹πŸ’–

Big kiss, this was the Pango::FontMap(3) page, served up by perl v5.42.0 and dated 2019-09-16 β€” slay, bye βœ¨πŸŽ€

πŸ“¦ where this page comes from