This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-pangoglyphstring.html is in python-gtk2-doc 2.24.0-4ubuntu1.

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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.GlyphString</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangofontsetsimple.html" title="pango.FontsetSimple"><link rel="next" href="class-pangolanguage.html" title="pango.Language"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">pango.GlyphString</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangofontsetsimple.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangolanguage.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pango.GlyphString"><a name="class-pangoglyphstring"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.GlyphString</h2><p>pango.GlyphString — an object holding strings of glyphs and glyph
information.</p></div><div class="refsect1" title="Synopsis"><a name="id3209491"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.GlyphString</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-pangoglyphstring.html#constructor-pangoglyphstring" title="Constructor">pango.GlyphString</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoglyphstring.html#method-pangoglyphstring--set-size" title="pango.GlyphString.set_size">set_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>new_len</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoglyphstring.html#method-pangoglyphstring--copy" title="pango.GlyphString.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoglyphstring.html#method-pangoglyphstring--extents" title="pango.GlyphString.extents">extents</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoglyphstring.html#method-pangoglyphstring--extents-range" title="pango.GlyphString.extents_range">extents_range</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>start</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>end</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangoglyphstring.html#method-pangoglyphstring--get-logical-widths" title="pango.GlyphString.get_logical_widths">get_logical_widths</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>embedding_level</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Attributes"><a name="id3205955"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"num_glyphs"</td><td valign="top">Read</td><td valign="top">The number of glyphs in the glyph string.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="id3011823"></a><h2>Description</h2><p>A <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a> 
object contains strings of glyphs with geometry and visual attribute
information.</p></div><div class="refsect1" title="Constructor"><a name="constructor-pangoglyphstring"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">pango.GlyphString</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a></td></tr></tbody></table><p>Creates a new <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a> 
containing no glyphs.</p></div><div class="refsect1" title="Methods"><a name="id3137502"></a><h2>Methods</h2><div class="refsect2" title="pango.GlyphString.set_size"><a name="method-pangoglyphstring--set-size"></a><h3>pango.GlyphString.set_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_size</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>new_len</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>new_len</code></strong> :</span></p></td><td>the new length of the
string.</td></tr></tbody></table><p>The <code class="methodname">set_size</code>() method resizes the glyph
string to the length specified by <em class="parameter"><code>new_len</code></em>.</p></div><div class="refsect2" title="pango.GlyphString.copy"><a name="method-pangoglyphstring--copy"></a><h3>pango.GlyphString.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a></td></tr></tbody></table><p>The <code class="methodname">copy</code>() method returns a <a class="link" href="class-pangoglyphstring.html" title="pango.GlyphString"><code class="classname">pango.GlyphString</code></a> 
that is a copy of the glyph string.</p></div><div class="refsect2" title="pango.GlyphString.extents"><a name="method-pangoglyphstring--extents"></a><h3>pango.GlyphString.extents</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">extents</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>font</code></strong> :</span></p></td><td>a <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a 2-tuple containing two 4-tuples representing
the ink and logical extents rectangles of the glyph
string.</td></tr></tbody></table><p>The <code class="methodname">extents</code>() method returns a 2-tuple
containing two 4-tuples representing the logical and ink extents rectangles
of the glyph string as rendered in the <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> specified
by <em class="parameter"><code>font</code></em>. See the <a class="link" href="class-pangofont.html#method-pangofont--get-glyph-extents" title="pango.Font.get_glyph_extents"><code class="methodname">pango.Font.get_glyph_extents</code>()</a> 
for details about the interpretation of the rectangles.</p></div><div class="refsect2" title="pango.GlyphString.extents_range"><a name="method-pangoglyphstring--extents-range"></a><h3>pango.GlyphString.extents_range</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">extents_range</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>start</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>end</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>font</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>start</code></strong> :</span></p></td><td>start index</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>end</code></strong> :</span></p></td><td>end index</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>font</code></strong> :</span></p></td><td>a <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a 2-tuple containing two 4-tuples representing
the ink and logical extents rectangles of the glyph string
range.</td></tr></tbody></table><p>The <code class="methodname">extents_range</code>() method returns a
2-tuple containing two 4-tuples representing the logical and ink extents
rectangles of a range (specified by <em class="parameter"><code>start</code></em> and
<em class="parameter"><code>end</code></em>) of the glyph string as rendered in the <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> specified
by <em class="parameter"><code>font</code></em>. The extents are relative to the start of the
glyph string range (the origin of their coordinate system is at the start of
the range, not at the start of the entire glyph string).</p></div><div class="refsect2" title="pango.GlyphString.get_logical_widths"><a name="method-pangoglyphstring--get-logical-widths"></a><h3>pango.GlyphString.get_logical_widths</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_logical_widths</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>embedding_level</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>text</code></strong> :</span></p></td><td>the text corresponding to the
glyphs</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>embedding_level</code></strong> :</span></p></td><td>the embedding level of the
string</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list containing the calculated character
widths.</td></tr></tbody></table><p>The <code class="methodname">get_logical_widths</code>() method returns
a list of the screen width of the characters in the specified
<em class="parameter"><code>text</code></em> that corresponds to the glyph string. When
multiple characters compose a single cluster, the width of the entire
cluster is divided equally among the characters.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-pangofontsetsimple.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pango-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-pangolanguage.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">pango.FontsetSimple </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> pango.Language</td></tr></table></div></body></html>