/usr/lib/perl5/Pango.pm is in libpango-perl 1.222-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | #
# Copyright (C) 2003-2008 by the gtk2-perl team (see the file AUTHORS for
# the full list)
#
# 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.1 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 GNU Library General Public License for
# more details.
#
# You should have received a copy of the GNU Library General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
#
package Pango;
use 5.008;
use strict;
use warnings;
use Glib;
# if pango is at 1.10.0 or newer, we need to import the Cairo module for the
# cairo glue in pango.
eval "use Cairo;";
use Exporter;
require DynaLoader;
our $VERSION = '1.222';
our @ISA = qw(DynaLoader Exporter);
sub dl_load_flags { $^O eq 'darwin' ? 0x00 : 0x01 }
# now load the XS code.
Pango->bootstrap ($VERSION);
1;
__END__
# documentation is a good thing.
=head1 NAME
Pango - Layout and render international text
=head1 SYNOPSIS
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');
=head1 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 L<Cairo> and/or L<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
L<Pango::Layout>, a high level driver for laying out entire blocks of text, and
routines to assist in editing internationalized text.
[Adapted from L<http://www.pango.org/>.]
=head1 DOCUMENTATION
L<Pango> tries to stick very close in spirit to the C API of the underlying
pango library. Thus, the manual available at
L<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
L<Pango::index>.
=head1 SEE ALSO
L<perl>, L<Glib>, L<Cairo>, L<Gtk2>.
L<Pango::index> lists the autogenerated API documentation pod files for Pango.
L<http://www.pango.org/> is the homepage of the pango C library. Its API
documentation is available at L<http://library.gnome.org/devel/pango/stable/>.
=head1 AUTHORS
muppet <scott at asofyet dot org>
Torsten Schoenfeld <kaffeetisch at gmx dot de>
Marc Lehmann <pcg at goof dot com>
=head1 COPYRIGHT AND LICENSE
Copyright 2003-2011 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 GNU Library General Public License for more
details.
You should have received a copy of the GNU Library General Public License along
with this library; if not, write to the Free Software Foundation, Inc., 59
Temple Place - Suite 330, Boston, MA 02111-1307 USA.
=cut
|