This file is indexed.

/usr/lib/perl5/Gtk2/Pango.pm is in libgtk2-perl 2:1.223-1build3.

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
128
129
130
131
132
133
134
#
# $Id$
#

package Gtk2::Pango;

our $VERSION = '0.01';

use strict;
require Exporter;

our @ISA = qw/Exporter/;

our @EXPORT = qw(
	PANGO_WEIGHT_ULTRALIGHT
	PANGO_WEIGHT_LIGHT
	PANGO_WEIGHT_NORMAL
	PANGO_WEIGHT_BOLD
	PANGO_WEIGHT_ULTRABOLD
	PANGO_WEIGHT_HEAVY

	PANGO_SCALE_XX_SMALL
	PANGO_SCALE_X_SMALL
	PANGO_SCALE_SMALL
	PANGO_SCALE_MEDIUM
	PANGO_SCALE_LARGE
	PANGO_SCALE_X_LARGE
	PANGO_SCALE_XX_LARGE

	PANGO_SCALE
);

use constant PANGO_WEIGHT_ULTRALIGHT => 200;
use constant PANGO_WEIGHT_LIGHT      => 300;
use constant PANGO_WEIGHT_NORMAL     => 400;
use constant PANGO_WEIGHT_BOLD       => 700;
use constant PANGO_WEIGHT_ULTRABOLD  => 800;
use constant PANGO_WEIGHT_HEAVY      => 900;

use constant PANGO_SCALE_XX_SMALL => 0.5787037037037;
use constant PANGO_SCALE_X_SMALL  => 0.6444444444444;
use constant PANGO_SCALE_SMALL    => 0.8333333333333;
use constant PANGO_SCALE_MEDIUM   => 1.0;
use constant PANGO_SCALE_LARGE    => 1.2;
use constant PANGO_SCALE_X_LARGE  => 1.4399999999999;
use constant PANGO_SCALE_XX_LARGE => 1.728;

use constant PANGO_SCALE => 1024;

1;

=head1 NAME

Gtk2::Pango - constants for use with Pango

=head1 SYNOPSIS

  use Gtk2; # gets the actual Pango objects and methods

  use Gtk2::Pango; # load extra constants

=head1 DESCRIPTION

To use Pango effectively, you need a few extra constants that are not
supplied in normal ways by the type system or by other means.

This module exports all of those extra constants when you load it.
They use the fully-prefixed names from the C documentation.

=head1 EXPORT

PangoWeight is indeed defined as an enumerated type whose values can be
used as nickname strings in the perl bindings, but in several places 
where a weight is needed, a gint is requested instead.  This is because
PangoWeight is actually just a set of predefined values for an integer-valued
property.  The PANGO_WEIGHT_* constants give you the predefined values:

	PANGO_WEIGHT_ULTRALIGHT
	PANGO_WEIGHT_LIGHT
	PANGO_WEIGHT_NORMAL
	PANGO_WEIGHT_BOLD
	PANGO_WEIGHT_ULTRABOLD
	PANGO_WEIGHT_HEAVY

These are #defined in the C source, and thus are not available anywhere
except here:

	PANGO_SCALE_XX_SMALL
	PANGO_SCALE_X_SMALL
	PANGO_SCALE_SMALL
	PANGO_SCALE_MEDIUM
	PANGO_SCALE_LARGE
	PANGO_SCALE_X_LARGE
	PANGO_SCALE_XX_LARGE

PANGO_SCALE is needed to convert between Pango units and pixels.
It is also available as Gtk2::Pango->scale.

	PANGO_SCALE

=head1 BUGS

This module shouldn't exist, but some parts of the API just aren't clean.

This stuff is hardcoded directly from the headers of pango 1.2.1.

=head1 SEE ALSO

L<perl>(1), L<Gtk2>(3pm)

=head1 AUTHOR

muppet E<lt>scott AT asofyet.orgE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright 2003 by muppet

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.

=cut