Pango::FontMetrics(3)

πŸ’– Pango::FontMetrics(3) β€” the glow-up your font metrics deserved ✨

okay so bestie, gather round β€” this is the manual page for Pango::FontMetrics, living under the Pango manual. It's literally just a wrapper for PangoFontMetrics, and honestly? It's giving quiet luxury. No cap. πŸŽ€


🌸 NAME 🌸

Pango::FontMetrics β€” wrapper for PangoFontMetrics 🫢

πŸ¦‹ HIERARCHY πŸ¦‹

so here's the family tree, and it's a whole mood:

Glib::Boxed
+----Pango::FontMetrics

like yes, it's a Glib::Boxed child and it knows it. main character energy fr. πŸ‘‘

✨ METHODS ✨

okay this is the part you actually came for, so let's go method by method, no skipping, we're covering all of them πŸ’…

  • integer = $metrics->get_approximate_char_width β€” grabs you the approximate character width, as an integer. approximation nation, but make it precise. πŸ“
  • integer = $metrics->get_approximate_digit_width β€” same deal but for digits specifically β€” approximate digit width, returned as an integer. numbers stay winning. πŸ”’
  • integer = $metrics->get_ascent β€” the ascent, as an integer. get you a font that rises. 🌀️
  • integer = $metrics->get_descent β€” the descent, as an integer. what goes up must come down, iconic behaviour honestly. 🌊
  • integer = $metrics->get_strikethrough_position β€” where the strikethrough sits, as an integer. ~~very demure~~ very precise.
Since: pango 1.6 ⭐
  • integer = $metrics->get_strikethrough_thickness β€” how thick that strikethrough is, as an integer. chunky. bold. no notes. πŸ”₯
Since: pango 1.6 ⭐
  • integer = $metrics->get_underline_position β€” underline position, as an integer. underrated, literally. 🫢
Since: pango 1.6 ⭐
  • integer = $metrics->get_underline_thickness β€” underline thickness, as an integer. go off, underline. 🌈
Since: pango 1.6 ⭐

πŸ‘€ SEE ALSO πŸ‘€

go check out Pango and Glib::Boxed β€” they're right there in the group chat, say hi. πŸ’¬

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

This software is licensed under the LGPL. See Pango for a full notice. (yes, actual legal iconery β€” do read the notice, bestie 🧚)


and that's the whole page, periodt. πŸ’œ

this little tour was brought to you by perl v5.42.0, dated 2019-09-16 β€” vintage, but make it slay. πŸ“πŸŒ·

πŸ“¦ where this page comes from