/usr/share/gtk-doc/html/pygtk/class-pangofontset.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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.Fontset</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-pangofontmetrics.html" title="pango.FontMetrics"><link rel="next" href="class-pangofontsetsimple.html" title="pango.FontsetSimple"></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.Fontset</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangofontmetrics.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangofontsetsimple.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pango.Fontset"><a name="class-pangofontset"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.Fontset</h2><p>pango.Fontset — an object containing a set of <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a>
objects.</p></div><div class="refsect1" title="Synopsis"><a name="id3079316"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.Fontset</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-pangofontset.html#method-pangofontset--get-font" title="pango.Fontset.get_font">get_font</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wc</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofontset.html#method-pangofontset--get-metrics" title="pango.Fontset.get_metrics">get_metrics</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofontset.html#method-pangofontset--foreach" title="pango.Fontset.foreach">foreach</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3036213"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-pangofontset.html" title="pango.Fontset">pango.Fontset</a>
</pre></div><div class="refsect1" title="Description"><a name="id2980579"></a><h2>Description</h2><p>A <a class="link" href="class-pangofontset.html" title="pango.Fontset"><code class="classname">pango.Fontset</code></a>
object holds a set of <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> objects.
A <a class="link" href="class-pangofontset.html" title="pango.Fontset"><code class="classname">pango.FontSet</code></a>
object is returned from the following methods:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="class-pangocontext.html#method-pangocontext--load-fontset" title="pango.Context.load_fontset"><code class="methodname">pango.Context.load_fontset</code>()</a></li><li class="listitem"><a class="link" href="class-pangofontmap.html#method-pangofontmap--load-fontset" title="pango.FontMap.load_fontset"><code class="methodname">pango.FontMap.load_fontset</code>()</a></li></ul></div></div><div class="refsect1" title="Methods"><a name="id3497159"></a><h2>Methods</h2><div class="refsect2" title="pango.Fontset.get_font"><a name="method-pangofontset--get-font"></a><h3>pango.Fontset.get_font</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_font</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>wc</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>wc</code></strong> :</span></p></td><td>a unicode character</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-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a>.</td></tr></tbody></table><p>The <code class="methodname">get_font</code>() method returns the <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> in the
fontset that contains the best glyph for the unicode character specified by
<em class="parameter"><code>wc</code></em>.</p></div><div class="refsect2" title="pango.Fontset.get_metrics"><a name="method-pangofontset--get-metrics"></a><h3>pango.Fontset.get_metrics</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_metrics</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-pangofontmetrics.html" title="pango.FontMetrics"><code class="classname">pango.FontMetrics</code></a>
object.</td></tr></tbody></table><p>The <code class="methodname">get_metrics</code>() method returns a
<a class="link" href="class-pangofontmetrics.html" title="pango.FontMetrics"><code class="classname">pango.FontMetrics</code></a>
object that contains the overall metric information for the fonts in the
fontset.</p></div><div class="refsect2" title="pango.Fontset.foreach"><a name="method-pangofontset--foreach"></a><h3>pango.Fontset.foreach</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">foreach</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>data</code></strong></span><span class="initializer">=None</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>func</code></strong> :</span></p></td><td>a callback function</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>data</code></strong> :</span></p></td><td>user data to pass to
<em class="parameter"><code>func</code></em></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">foreach</code>() method invokes the
function specified by <em class="parameter"><code>func</code></em> on each <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> of the
font set passing it the optional user data specified by
<em class="parameter"><code>data</code></em>. The signature of <em class="parameter"><code>func</code></em>
is:</p><pre class="programlisting">
def func(fontset, font, user_data)
</pre><p>where <em class="parameter"><code>fontset</code></em> is the <a class="link" href="class-pangofontset.html" title="pango.Fontset"><code class="classname">pango.Fontset</code></a>
containing the <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a>
<em class="parameter"><code>font</code></em> and <em class="parameter"><code>user_data</code></em> is
<em class="parameter"><code>data</code></em></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-pangofontmetrics.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-pangofontsetsimple.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">pango.FontMetrics </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> pango.FontsetSimple</td></tr></table></div></body></html>
|