This file is indexed.

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

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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.FontMap</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-pangofontfamily.html" title="pango.FontFamily"><link rel="next" href="class-pangofontmetrics.html" title="pango.FontMetrics"></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.FontMap</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangofontfamily.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangofontmetrics.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pango.FontMap"><a name="class-pangofontmap"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.FontMap</h2><p>pango.FontMap — an object that represents the set of fonts available for a
particular rendering system.</p></div><div class="refsect1" title="Synopsis"><a name="id2945955"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.FontMap</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangofontmap.html#method-pangofontmap--create-context" title="pango.FontMap.create_context">create_context</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangofontmap.html#method-pangofontmap--load-font" title="pango.FontMap.load_font">load_font</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>context</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>desc</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangofontmap.html#method-pangofontmap--load-fontset" title="pango.FontMap.load_fontset">load_fontset</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>context</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>desc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangofontmap.html#method-pangofontmap--list-families" title="pango.FontMap.list_families">list_families</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-pangofontmap.html#method-pangofontmap--get-shape-engine-type" title="pango.FontMap.get_shape_engine_type">get_shape_engine_type</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3084442"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-pangofontmap.html" title="pango.FontMap">pango.FontMap</a>
</pre></div><div class="refsect1" title="Description"><a name="id3245467"></a><h2>Description</h2><p>A <a class="link" href="class-pangofontmap.html" title="pango.FontMap"><code class="classname">pango.FontMap</code></a>
object represents the set of fonts available for a particular rendering
system. There appears to be no way to retrieve a <a class="link" href="class-pangofontmap.html" title="pango.FontMap"><code class="classname">pango.FontMap</code></a>
object in <code class="literal">PyGTK</code>.</p></div><div class="refsect1" title="Methods"><a name="id2927322"></a><h2>Methods</h2><div class="refsect2" title="pango.FontMap.create_context"><a name="method-pangofontmap--create-context"></a><h3>pango.FontMap.create_context</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">create_context</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>the newly allocated
              <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.16 and above.</p></div><p>Creates
        a <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
        connected to fontmap. This is equivalent to calling the class
        constructor followed
        by <a class="link" href="class-pangocontext.html#method-pangocontext--set-font-map" title="pango.Context.get_font_map">pango.Context.set_font_map</a>.</p><p>If you are using Pango as part of a higher-level system, that system may have
        it's own way of create a <a class="link" href="class-pangocontext.html" title="pango.Context">pango.Context</a>.
        For instance, the GTK+ toolkit has, among others,
        <a class="link" href="gdk-functions.html#function-gdk--pango-context-get-for-screen" title="gtk.gdk.pango_context_get_for_screen">gtk.gdk.pango_context_get_for_screen</a>
        and <a class="link" href="class-gtkwidget.html#method-gtkwidget--get-pango-context" title="gtk.Widget.get_pango_context">gtk.Widget.get_pango_context</a>.
        Use those instead.
      </p></div><div class="refsect2" title="pango.FontMap.load_font"><a name="method-pangofontmap--load-font"></a><h3>pango.FontMap.load_font</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">load_font</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>context</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>desc</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>context</code></strong> :</span></p></td><td>the <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a> the
font will be used with</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>desc</code></strong> :</span></p></td><td>a <a class="link" href="class-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a> 
describing the font to load</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the loaded font , or <code class="literal">None</code> if
no font matched.</td></tr></tbody></table><p>The <code class="methodname">load_font</code>() method loads the <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> in the
fontmap that is the closest match for the <a class="link" href="class-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a> 
specified by <em class="parameter"><code>desc</code></em> in the <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
specified by <em class="parameter"><code>context</code></em>.</p></div><div class="refsect2" title="pango.FontMap.load_fontset"><a name="method-pangofontmap--load-fontset"></a><h3>pango.FontMap.load_fontset</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">load_fontset</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>context</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>desc</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</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>context</code></strong> :</span></p></td><td>the <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a> the
font will be used with</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>desc</code></strong> :</span></p></td><td>a <a class="link" href="class-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a> 
describing the font to load</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>language</code></strong> :</span></p></td><td>a <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
the fonts will be used for</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-pangofontset.html" title="pango.Fontset"><code class="classname">pango.FontSet</code></a>, or
<code class="literal">None</code> if no font matched.</td></tr></tbody></table><p>The <code class="methodname">load_fontset</code>() method loads a set
of <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a>
objects in the fontmap that can be used to render a font matching the <a class="link" href="class-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a> 
specified by <em class="parameter"><code>desc</code></em> for the <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
specified by <em class="parameter"><code>language</code></em> in the <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
specified by <em class="parameter"><code>context</code></em>.</p></div><div class="refsect2" title="pango.FontMap.list_families"><a name="method-pangofontmap--list-families"></a><h3>pango.FontMap.list_families</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">list_families</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 list of <a class="link" href="class-pangofontfamily.html" title="pango.FontFamily"><code class="classname">pango.FontFamily</code></a> 
objects.</td></tr></tbody></table><p>The <code class="methodname">list_families</code>() method returns a
list of all <a class="link" href="class-pangofontfamily.html" title="pango.FontFamily"><code class="classname">pango.FontFamily</code></a> 
objects for the fontmap.</p></div><div class="refsect2" title="pango.FontMap.get_shape_engine_type"><a name="method-pangofontmap--get-shape-engine-type"></a><h3>pango.FontMap.get_shape_engine_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_shape_engine_type</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> the ID string for the shape engines for the
	  font map.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">get_shape_engine_type</code>() method
returns the render ID for the shape engines for the font map</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-pangofontfamily.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-pangofontmetrics.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">pango.FontFamily </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> pango.FontMetrics</td></tr></table></div></body></html>