Pango::Fontset(3)

✨ Pango::Fontset ✨

okay so bestie, welcome to the Pango::Fontset page πŸ’– this is the User Contributed Perl Documentation version, and it's basically a lil' wrapper around PangoFontset β€” like, the whole thing is a cozy Perl blanket thrown over the C object. iykyk 🧚


🌸 NAME 🌸

Pango::Fontset β€” wrapper for PangoFontset 🫢

like, that's literally it. it wraps. it's a fontset. slay.


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree goes like this, no cap:

Glib::Object
+----Pango::Fontset

so yeah, it's a Glib::Object at heart, and Pango::Fontset is the main character descending from it πŸ‘‘


πŸ’… METHODS πŸ’…

⭐ font = $fontset->get_font ($wc)

grab a font for a given character code, iconic behaviour honestly:

  • $wc (integer) β€” the character code you're asking about

⭐ $fontset->foreach ($func, $data=undef)

run your callback over the fontset β€” and note the $data default is undef, so you can totally just pass the func if you're feeling lazy:

  • $func (scalar) β€” your callback
  • $data (scalar) β€” optional extra data, defaults to undef
Since: pango 1.4 β€” so this one's been around a minute πŸ•°οΈ

⭐ fontmetrics = $fontset->get_metrics

returns the fontmetrics for the fontset. metrics! we love to see it πŸ“βœ¨


πŸŽ€ SEE ALSO πŸŽ€

go peek at these besties too:

  • Pango
  • Glib::Object

Copyright (C) 2003-2011 by the gtk2-perl team.

this software is licensed under the LGPL πŸ’œ β€” and if you want the full legal novel, see Pango for a full notice. periodt.


okay that's the whole page!! this doc is from perl v5.42.0, dated 2019-09-16, and it's the Pango::Fontset(3) manpage β€” mwah, go forth and fontset responsibly πŸ¦‹πŸ’–πŸŽ€

πŸ“¦ where this page comes from