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 β€” a Pango::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 β€” a Pango::Context
  • $options β€” a Cairo::FontOptions

get_resolution 🌟

returns a double resolution from a Pango::Context. iconic little number getter:

double = Pango::Cairo::Context::get_resolution ($context)
  • $context β€” a Pango::Context

set_resolution πŸ¦‹

sets the resolution with a $dpi value, which is a double:

Pango::Cairo::Context::set_resolution ($context, $dpi)
  • $context β€” a Pango::Context
  • $dpi β€” a double

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 β€” a Pango::Context
  • $func β€” a scalar
  • $data β€” a scalar
Since: pango 1.18 ✨

πŸ‘€ SEE ALSO πŸ‘€

  • Pango β€” go peek at the main page for the bigger picture, iykyk πŸ’œ

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