Pango(3)
okay so you've pulled up the Pango(3) page from the User Contributed Perl Documentation, and bestie, it's literally the manual for Pango β the library for laying out and rendering international text π
β¨. Think of it as your group chat for scripts, fonts, and Cairo, but make it typography.
πΈ NAME πΈ
Pango β layout and render international text. That's the whole vibe: text goes in, beautiful internationalized layout comes out π«Ά.
β¨ SYNOPSIS β¨
Here's the little starter snippet, verbatim, no cap:
my $surface = Cairo::ImageSurface->create ('argb32', 200, 100);
my $cr = Cairo::Context->create ($surface);
my $layout = Pango::Cairo::create_layout ($cr);
$layout->set_text ("\x{03A0}\x{03B1}\x{03BD}\x{8A9E}");
my $font = Pango::FontDescription->from_string ('Serif Bold 27');
$layout->set_font_description ($font);
Pango::Cairo::show_layout($cr, $layout);
$surface->write_to_png ('pango.png');
π¦ ABSTRACT π¦
Pango is a library for laying out and rendering text, and it's super focused on internationalization. You can use Pango anywhere text layout is needed, but pairing Pango with Cairo and/or Gtk2 gives you a complete solution with high quality text handling and graphics rendering.
The dynamically loaded modules handle text layout for particular combinations of script and font backend. Pango ships a wide selection of modules β including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts β and virtually all of the world's major scripts are supported.
Besides the low level layout rendering routines, Pango includes Pango::Layout, a high level driver for laying out entire blocks of text, plus routines that assist in editing internationalized text.
[Adapted from <http://www.pango.org/>.]
π DOCUMENTATION π
Pango tries to stick very close in spirit to the C API of the underlying pango library. So the manual at <http://library.gnome.org/devel/pango/stable/> also applies to this module. On top of that, API listings in POD form are generated during compilation for each of the sub-modules. You can find an index of those POD pages at Pango::index.
π SEE ALSO π
Shoutout to perl, Glib, Cairo, and Gtk2.
Pango::index lists the autogenerated API documentation pod files for Pango.
<http://www.pango.org/> is the homepage of the pango C library. Its API documentation lives at <http://library.gnome.org/devel/pango/stable/>.
π AUTHORS π
The legends behind this page:
muppet <scott at asofyet dot org>Torsten Schoenfeld <kaffeetisch at gmx dot de>Marc Lehmann <pcg at goof dot com>
π COPYRIGHT AND LICENSE π
Copyright 2003-2011, 2014 by the gtk2-perl team.
The legal tea, word for word:
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the LICENSE file in the top-level directory of this distribution for the full license terms.
okay that's the page, bestie! This beauty is from perl v5.42.0, dated 2019-09-16, and it's the Pango(3) manual β slay, periodt π
πβ¨.
π¦ 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