/usr/share/gtk-doc/html/pygtk/class-pangofont.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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.Font</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-pangocontext.html" title="pango.Context"><link rel="next" href="class-pangofontdescription.html" title="pango.FontDescription"></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.Font</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangocontext.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangofontdescription.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pango.Font"><a name="class-pangofont"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.Font</h2><p>pango.Font — a rendering-system independent font
representation.</p></div><div class="refsect1" title="Synopsis"><a name="id3210207"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.Font</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-pangofont.html#method-pangofont--describe" title="pango.Font.describe">describe</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#method-pangofont--get-metrics" title="pango.Font.get_metrics">get_metrics</a></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-pangofont.html#method-pangofont--get-glyph-extents" title="pango.Font.get_glyph_extents">get_glyph_extents</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#method-pangofont--get-font-map" title="pango.Font.get_font_map">get_font_map</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#function-pango--PIXELS" title="pango.PIXELS">pango.PIXELS</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#function-pango--ASCENT" title="pango.ASCENT">pango.ASCENT</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#function-pango--DESCENT" title="pango.DESCENT">pango.DESCENT</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#function-pango--RBEARING" title="pango.RBEARING">pango.RBEARING</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangofont.html#function-pango--LBEARING" title="pango.LBEARING">pango.LBEARING</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id2900607"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-pangofont.html" title="pango.Font">pango.Font</a>
</pre></div><div class="refsect1" title="Description"><a name="id2900737"></a><h2>Description</h2><p>A <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> object
represents a font in a rendering-system independent way. A <a class="link" href="class-pangofont.html" title="pango.Font"><code class="classname">pango.Font</code></a> is
returned from the <a class="link" href="class-pangocontext.html#method-pangocontext--load-font" title="pango.Context.load_font"><code class="methodname">pango.Context.load_font</code>()</a>,
<a class="link" href="class-pangofontset.html#method-pangofontset--get-font" title="pango.Fontset.get_font"><code class="methodname">pango.FontSet.get_font</code>()</a>
and <a class="link" href="class-pangofontmap.html#method-pangofontmap--load-font" title="pango.FontMap.load_font"><code class="methodname">pango.FontMap.load_font</code>()</a>)
methods.</p></div><div class="refsect1" title="Methods"><a name="id3069242"></a><h2>Methods</h2><div class="refsect2" title="pango.Font.describe"><a name="method-pangofont--describe"></a><h3>pango.Font.describe</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">describe</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-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a>
object.</td></tr></tbody></table><p>The <code class="methodname">describe</code>() method returns a
description of the font in a <a class="link" href="class-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a>
object.</p></div><div class="refsect2" title="pango.Font.get_metrics"><a name="method-pangofont--get-metrics"></a><h3>pango.Font.get_metrics</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_metrics</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>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>
that determines the script to get the metrics for, or
<code class="literal">None</code> to get the metrics for the entire
font.</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-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 containing the metric information for a font using 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> to limit the metrics to the
script(s) used by <em class="parameter"><code>language</code></em>. If the value of
<em class="parameter"><code>language</code></em> is <code class="literal">None</code>, the font metrics
for the entire font is returned.</p></div><div class="refsect2" title="pango.Font.get_glyph_extents"><a name="method-pangofont--get-glyph-extents"></a><h3>pango.Font.get_glyph_extents</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_extents</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph</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>glyph</code></strong> :</span></p></td><td>the glyph index</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 rectangles used to store the extents of
<em class="parameter"><code>glyph</code></em> as drawn.</td></tr></tbody></table><p>The <code class="methodname">get_glyph_extents</code>() method returns a
2-tuple containing two 4-tuples representing the values of the logical and
ink extent rectangles of the specified <em class="parameter"><code>glyph</code></em> within a
font. The coordinate system for each rectangle has its origin at the base
line and horizontal origin of the character with increasing coordinates
extending to the right and down. The <code class="function">pango.ASCENT()</code>,
<code class="function">pango.DESCENT()</code>, <code class="function">pango.LBEARING()</code>,
and <code class="function">pango.RBEARING</code> functions can be used to convert
from the extents rectangle to more traditional font metrics. The units of
the rectangles are in <code class="literal">1/pango.SCALE</code> of a device
unit.</p></div><div class="refsect2" title="pango.Font.get_font_map"><a name="method-pangofont--get-font-map"></a><h3>pango.Font.get_font_map</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_font_map</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 <a class="link" href="class-pangofontmap.html" title="pango.FontMap"><code class="classname">pango.FontMap</code></a>
for the font</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.10 and above.</p></div><p>Gets the font map for which the font was created.</p></div></div><div class="refsect1" title="Functions"><a name="id3275524"></a><h2>Functions</h2><div class="refsect2" title="pango.PIXELS"><a name="function-pango--PIXELS"></a><h3>pango.PIXELS</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">pango.PIXELS</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</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>size</code></strong> :</span></p></td><td>the integer value to convert to pango
pixels</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the pixel value</td></tr></tbody></table><p>The <code class="function">pango.PIXELS</code>() function converts and
returns the integer value specified by <em class="parameter"><code>size</code></em> to pango
pixels.</p></div><div class="refsect2" title="pango.ASCENT"><a name="function-pango--ASCENT"></a><h3>pango.ASCENT</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">pango.ASCENT</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</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>rect</code></strong> :</span></p></td><td>a 4-tuple representing an extent rectangle's
(x, y, width, height) value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the ascent value of
<em class="parameter"><code>rect</code></em></td></tr></tbody></table><p>The <code class="function">pango.ASCENT</code>() function returns the
ascent value of the extent rectangle specified by
<em class="parameter"><code>rect</code></em>.</p></div><div class="refsect2" title="pango.DESCENT"><a name="function-pango--DESCENT"></a><h3>pango.DESCENT</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">pango.DESCENT</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</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>rect</code></strong> :</span></p></td><td>a 4-tuple representing an extent rectangle's
(x, y, width, height) value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the descent value of
<em class="parameter"><code>rect</code></em></td></tr></tbody></table><p>The <code class="function">pango.DESCENT</code>() function returns the
descent value of the extent rectangle specified by
<em class="parameter"><code>rect</code></em>.</p></div><div class="refsect2" title="pango.RBEARING"><a name="function-pango--RBEARING"></a><h3>pango.RBEARING</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">pango.RBEARING</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</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>rect</code></strong> :</span></p></td><td>a 4-tuple representing an extent rectangle's
(x, y, width, height) value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the right bearing value of
<em class="parameter"><code>rect</code></em></td></tr></tbody></table><p>The <code class="function">pango.RBEARING</code>() function returns the
right bearing value of the extent rectangle specified by
<em class="parameter"><code>rect</code></em>.</p></div><div class="refsect2" title="pango.LBEARING"><a name="function-pango--LBEARING"></a><h3>pango.LBEARING</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">pango.LBEARING</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>rect</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>rect</code></strong> :</span></p></td><td>a 4-tuple representing an extent rectangle's
(x, y, width, height) value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the left bearing value of
<em class="parameter"><code>rect</code></em></td></tr></tbody></table><p>The <code class="function">pango.LBEARING</code>() function returns the
left bearing value of the extent rectangle specified by
<em class="parameter"><code>rect</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-pangocontext.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-pangofontdescription.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">pango.Context </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> pango.FontDescription</td></tr></table></div></body></html>
|