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 π
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
- opensuse-leap 16.0: perl-Pango 1.227-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-Pango 1.227-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-Pango 1.227-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-Pango 1.227-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms