Pango::...:Context(3)
πΈ NAME πΈ
okay so this is the Pango::...:Context(3) page from the User Contributed Perl Documentation, and the actual star of the show is Pango::Cairo::Context. it's the Cairo-flavored Pango context, and we're gonna walk through its methods like a very competent group chat π
β¨
π¦ HIERARCHY π¦
the family tree is literally giving:
Glib::Object
+----Pango::Context
+----Pango::Cairo::Context
so: Glib::Object at the top, Pango::Context underneath, and Pango::Cairo::Context is the main character at the bottom π₯
β¨ METHODS β¨
get_font_options π
grabs the font options from a Pango::Context.
fontoptions = Pango::Cairo::Context::get_font_options ($context)
what it takes:
$contextβ aPango::Context, bestie π«Ά
set_font_options π
sets the font options on a context. no cap, here's the whole guest list:
Pango::Cairo::Context::set_font_options ($context, $options)
$contextβ aPango::Context$optionsβ aCairo::FontOptions
get_resolution π
returns a double resolution from a Pango::Context. iconic little number getter:
double = Pango::Cairo::Context::get_resolution ($context)
$contextβ aPango::Context
set_resolution π¦
sets the resolution with a $dpi value, which is a double:
Pango::Cairo::Context::set_resolution ($context, $dpi)
$contextβ aPango::Context$dpiβ adouble
set_shape_renderer π
sets the shape renderer. $func and $data both default to undef, periodt:
Pango::Cairo::Context::set_shape_renderer ($context, $func=undef,
$data=undef)
$contextβ aPango::Context$funcβ ascalar$dataβ ascalar
Since: pango 1.18 β¨
π SEE ALSO π
Pangoβ go peek at the main page for the bigger picture, iykyk π
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Pango for a full notice.
mwah π this page's footer says perl v5.42.0, dated 2019-09-16, and it's the Pango::...:Context(3) page. bye bestie π«Άπ
π¦ 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