1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>pango.FontFace</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><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="previous" href="class-pangofontdescription.html" title="pango.FontDescription"><link rel="next" href="class-pangofontfamily.html" title="pango.FontFamily"></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.FontFace</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangofontdescription.html">Prev</a></td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-pangofontfamily.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-pangofontface"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>pango.FontFace</h2><p>pango.FontFace — an object representing a group of fonts varying only in
size.</p></div><div class="refsect1" lang="en"><a name="id3020172"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.FontFace</span></span>(<span class="ooclass"><span class="classname"><a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a></span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a href="class-pangofontface.html#method-pangofontface--describe" title="pango.FontFace.describe">describe</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-pangofontface.html#method-pangofontface--get-face-name" title="pango.FontFace.get_face_name">get_face_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-pangofontface.html#method-pangofontface--list-sizes" title="pango.FontFace.list_sizes">list_sizes</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3128498"></a><h2>Description</h2><p>A <a href="class-pangofontface.html" title="pango.FontFace"><tt class="classname">pango.FontFace</tt></a>
object represents a group of fonts with the same family, weight, slant,
stretch and width but varying sizes. A list of font faces can be retrieved
from a <a href="class-pangofontfamily.html" title="pango.FontFamily"><tt class="classname">pango.FontFamily</tt></a>
object using the <a href="class-pangofontfamily.html#method-pangofontfamily--list-faces" title="pango.FontFamily.list_faces"><tt class="methodname">pango.FontFamily.list_faces</tt>()</a>
method.</p></div><div class="refsect1" lang="en"><a name="id3266199"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
+-- <a href="class-pangofontface.html" title="pango.FontFace">pango.FontFace</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3065539"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-pangofontface--describe"></a><h3>pango.FontFace.describe</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">describe</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a <a href="class-pangofontdescription.html" title="pango.FontDescription"><tt class="classname">pango.FontDescription</tt></a>
object containing the description of the face.</td></tr></tbody></table><p>The <tt class="methodname">describe</tt>() method returns a <a href="class-pangofontdescription.html" title="pango.FontDescription"><tt class="classname">pango.FontDescription</tt></a>
object containing the family, style, variant, weight and stretch of the
<a href="class-pangofontface.html" title="pango.FontFace"><tt class="classname">pango.FontFace</tt></a>.
The size attribute field will be unset.</p></div><div class="refsect2" lang="en"><a name="method-pangofontface--get-face-name"></a><h3>pango.FontFace.get_face_name</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_face_name</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the face name for the
face.</td></tr></tbody></table><p>The <tt class="methodname">get_face_name</tt>() method returns a
string representing this font face. This name is unique among all faces in the
family and is suitable for displaying to users.</p></div><div class="refsect2" lang="en"><a name="method-pangofontface--list-sizes"></a><h3>pango.FontFace.list_sizes</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">list_sizes</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a tuple containing a list of face sizes in
pango units or <tt class="literal">None</tt></td></tr></tbody></table><div class="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 <tt class="methodname">list_sizes</tt>() method returns a tuple
containing the available sizes for a bitmap font. If the font face is a
scalable font this method returns <tt class="literal">None</tt>.</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-pangofontdescription.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-pangofontfamily.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">pango.FontDescription</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">pango.FontFamily</td></tr></table></div></body></html>
|