.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Pango 3" .TH Pango 3 2024-09-01 "perl v5.40.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Pango \- Layout and render international text .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& my $surface = Cairo::ImageSurface\->create (\*(Aqargb32\*(Aq, 200, 100); \& my $cr = Cairo::Context\->create ($surface); \& \& my $layout = Pango::Cairo::create_layout ($cr); \& $layout\->set_text ("\ex{03A0}\ex{03B1}\ex{03BD}\ex{8A9E}"); \& \& my $font = Pango::FontDescription\->from_string (\*(AqSerif Bold 27\*(Aq); \& $layout\->set_font_description ($font); \& \& Pango::Cairo::show_layout($cr, $layout); \& \& $surface\->write_to_png (\*(Aqpango.png\*(Aq); .Ve .SH ABSTRACT .IX Header "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. .PP 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. .PP 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. .PP [Adapted from .] .SH DOCUMENTATION .IX Header "DOCUMENTATION" Pango tries to stick very close in spirit to the C API of the underlying pango library. Thus, the manual available at 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. .SH "SEE ALSO" .IX Header "SEE ALSO" perl, Glib, Cairo, Gtk2. .PP Pango::index lists the autogenerated API documentation pod files for Pango. .PP is the homepage of the pango C library. Its API documentation is available at . .SH AUTHORS .IX Header "AUTHORS" .Vb 3 \& muppet \& Torsten Schoenfeld \& Marc Lehmann .Ve .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright 2003\-2011, 2014 by the gtk2\-perl team. .PP 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. .PP 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. .PP See the LICENSE file in the top-level directory of this distribution for the full license terms.