Pango - Layout and render international text
my $surface = Cairo::ImageSurface->create ('argb32', 200, 100);
my $cr = Cairo::Context->create ($surface);
my $layout = Pango::Cairo::create_layout ($cr);
my $font = Pango::FontDescription->from_string ('Serif Bold 27');
Pango is a library for laying out and rendering text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a complete solution with high quality text handling and graphics rendering.
Dynamically loaded modules handle text layout for particular combinations of script and font backend. Pango provides a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported.
In addition to the low level layout rendering routines, Pango includes Pango::Layout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text.
[Adapted from http://www.pango.org/.]
Pango tries to stick very close in spirit to the C API of the underlying pango library. Thus, the manual available at http://library.gnome.org/devel/pango/stable/ also applies to this module. Additionally, API listings in POD form are generated during compilation for each of the sub-modules. An index of those POD pages is available at Pango::index.
perl, Glib, Cairo, 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 is available at http://library.gnome.org/devel/pango/stable/.
muppet <scott at asofyet dot org>
Torsten Schoenfeld <kaffeetisch at gmx dot de>
Marc Lehmann <pcg at goof dot com>
Copyright 2003-2011, 2014 by the gtk2-perl team.
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.
To install Pango, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.