Pango(3pm)

Pango3pm

Layout and render international text

Usage

  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, 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/>.]

Documentation

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.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

Authors

 muppet <scott at asofyet dot org>
 Torsten Schoenfeld <kaffeetisch at gmx dot de>
 Marc Lehmann <pcg at goof dot com>

From pango-perl 1.227-20 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.