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 59 60 61 62 63 64 65 66 67 68 69 70
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>gnomeprint.FontFace</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Python Gnomeprint Reference Manual"><link rel="up" href="gnomeprint-class-reference.html" title="The Gnomeprint Class Reference"><link rel="prev" href="class-gnomeprintfont.html" title="gnomeprint.Font"><link rel="next" href="class-gnomeprintglyphlist.html" title="gnomeprint.Glyphlist"></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">gnomeprint.FontFace</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gnomeprintfont.html">Prev</a> </td><th width="60%" align="center">The Gnomeprint Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gnomeprintglyphlist.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gnomeprint.FontFace"><a name="class-gnomeprintfontface"></a><div class="titlepage"></div><div class="refnamediv"><h2>gnomeprint.FontFace</h2><p>gnomeprint.FontFace — FontFace object for GnomePrint</p></div><div class="refsect1" title="Synopsis"><a name="id2587773"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gnomeprint.FontFace</span></span>(<span class="ooclass"><span class="classname">gobject.GObject</span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#constructor-gnomeprintfontface" title="Constructor">gnomeprint.FontFace</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>face</code></strong></span></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-gnomeprintfontface.html#method-gnomeprintfontface--get-ascender" title="gnomeprint.FontFace.get_ascender">get_ascender</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-descender" title="gnomeprint.FontFace.get_descender">get_descender</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-family-name" title="gnomeprint.FontFace.get_family_name">get_family_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-font" title="gnomeprint.FontFace.get_font">get_font</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xres</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yres</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-glyph-ps-name" title="gnomeprint.FontFace.get_glyph_ps_name">get_glyph_ps_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-glyph-stdadvance" title="gnomeprint.FontFace.get_glyph_stdadvance">get_glyph_stdadvance</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>advance</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-glyph-stdbbox" title="gnomeprint.FontFace.get_glyph_stdbbox">get_glyph_stdbbox</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bbox</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-glyph-stdkerning" title="gnomeprint.FontFace.get_glyph_stdkerning">get_glyph_stdkerning</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph0</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>kerning</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-glyph-stdoutline" title="gnomeprint.FontFace.get_glyph_stdoutline">get_glyph_stdoutline</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-gnomeprintfontface.html#method-gnomeprintfontface--get-glyph-width" title="gnomeprint.FontFace.get_glyph_width">get_glyph_width</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-gnomeprintfontface.html#method-gnomeprintfontface--get-name" title="gnomeprint.FontFace.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-num-glyphs" title="gnomeprint.FontFace.get_num_glyphs">get_num_glyphs</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-ps-name" title="gnomeprint.FontFace.get_ps_name">get_ps_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-sample" title="gnomeprint.FontFace.get_sample">get_sample</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-species-name" title="gnomeprint.FontFace.get_species_name">get_species_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-stdbbox" title="gnomeprint.FontFace.get_stdbbox">get_stdbbox</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-underline-position" title="gnomeprint.FontFace.get_underline_position">get_underline_position</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-underline-thickness" title="gnomeprint.FontFace.get_underline_thickness">get_underline_thickness</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--get-weight-code" title="gnomeprint.FontFace.get_weight_code">get_weight_code</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--is-fixed-width" title="gnomeprint.FontFace.is_fixed_width">is_fixed_width</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--is-italic" title="gnomeprint.FontFace.is_italic">is_italic</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#method-gnomeprintfontface--lookup-default" title="gnomeprint.FontFace.lookup_default">lookup_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unicode</code></strong></span></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-gnomeprintfontface.html#function-gnomeprint--font-face-find-closest-from-pango-description" title="gnomeprint.font_face_find_closest_from_pango_description">gnomeprint.font_face_find_closest_from_pango_description</a></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-gnomeprintfontface.html#function-gnomeprint--font-face-find-closest-from-pango-font" title="gnomeprint.font_face_find_closest_from_pango_font">gnomeprint.font_face_find_closest_from_pango_font</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pfont</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#function-gnomeprint--font-face-find-closest-from-weight-slant" title="gnomeprint.font_face_find_closest_from_weight_slant">gnomeprint.font_face_find_closest_from_weight_slant</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>family</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>weight</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>italic</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfontface.html#function-gnomeprint--font-face-find-from-family-and-style" title="gnomeprint.font_face_find_from_family_and_style">gnomeprint.font_face_find_from_family_and_style</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>family</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>style</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id2612504"></a><h2>Ancestry</h2><pre class="synopsis">+-- gobject.GObject
+-- <a class="link" href="class-gnomeprintfontface.html" title="gnomeprint.FontFace">gnomeprint.FontFace</a>
</pre></div><div class="refsect1" title="Properties"><a name="id2612540"></a><h2>Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"FontName"</td><td valign="top">Read</td><td valign="top">The font name.</td></tr><tr valign="top"><td valign="top">"FullName"</td><td valign="top">Read</td><td valign="top">The font full name.</td></tr><tr valign="top"><td valign="top">"FamilyName"</td><td valign="top">Read</td><td valign="top">The font family name.</td></tr><tr valign="top"><td valign="top">"Weight"</td><td valign="top">Read</td><td valign="top">The font weight.</td></tr><tr valign="top"><td valign="top">"ItalicAngle"</td><td valign="top">Read</td><td valign="top">The angle of the italic font.</td></tr><tr valign="top"><td valign="top">"IsFixedPitch"</td><td valign="top">Read</td><td valign="top"><code class="literal">TRUE</code> if the font is fixed pitch, <code class="literal">FALSE</code> otherwise.</td></tr><tr valign="top"><td valign="top">"FontBBox"</td><td valign="top">Read</td><td valign="top"> </td></tr><tr valign="top"><td valign="top">"UnderlinePosition"</td><td valign="top">Read</td><td valign="top">The underline position of the font.</td></tr><tr valign="top"><td valign="top">"UnderlineThickness"</td><td valign="top">Read</td><td valign="top">The underline thickness of the font.</td></tr><tr valign="top"><td valign="top">"Version"</td><td valign="top">Read</td><td valign="top"> </td></tr><tr valign="top"><td valign="top">"CapHeight"</td><td valign="top">Read</td><td valign="top"> </td></tr><tr valign="top"><td valign="top">"XHeight"</td><td valign="top">Read</td><td valign="top"> </td></tr><tr valign="top"><td valign="top">"Ascender"</td><td valign="top">Read</td><td valign="top">The ascender of the font</td></tr><tr valign="top"><td valign="top">"Descender"</td><td valign="top">Read</td><td valign="top">The descender of the font</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="description-gnomeprintfontface"></a><h2>Description</h2><p>
</p></div><div class="refsect1" title="Constructor"><a name="constructor-gnomeprintfontface"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gnomeprint.FontFace</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</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>name</code></strong> :</span></p></td><td> a font name.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gnomeprintfontface.html" title="gnomeprint.FontFace"><code class="classname">gnomeprint.FontFace</code></a>.
</td></tr></tbody></table><p>
Creates a new <a class="link" href="class-gnomeprintfontface.html" title="gnomeprint.FontFace"><code class="classname">gnomeprint.FontFace</code></a> object.
</p></div><div class="refsect1" title="Methods"><a name="id2612958"></a><h2>Methods</h2><div class="refsect2" title="gnomeprint.FontFace.get_ascender"><a name="method-gnomeprintfontface--get-ascender"></a><h3>gnomeprint.FontFace.get_ascender</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_ascender</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 ascender of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_ascender</code>() method works with the standard Adobe encoding and without kerning or ligatures.
When the text libs get written, this function will be deprecated.
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_descender"><a name="method-gnomeprintfontface--get-descender"></a><h3>gnomeprint.FontFace.get_descender</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_descender</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 descender of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_descender</code>() method works with the standard Adobe encoding and without kerning or ligatures. When the text libs get
written, this function will be deprecated.
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_family_name"><a name="method-gnomeprintfontface--get-family-name"></a><h3>gnomeprint.FontFace.get_family_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_family_name</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 name, <code class="literal">None</code> on error.</td></tr></tbody></table><p>
The <code class="methodname">get_family_name</code>() method get the family name.
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_font"><a name="method-gnomeprintfontface--get-font"></a><h3>gnomeprint.FontFace.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>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>xres</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>yres</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> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>xres</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>yres</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the face of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_face</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_glyph_ps_name"><a name="method-gnomeprintfontface--get-glyph-ps-name"></a><h3>gnomeprint.FontFace.get_glyph_ps_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_ps_name</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> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the full name of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_glyph_ps_name</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_glyph_stdadvance"><a name="method-gnomeprintfontface--get-glyph-stdadvance"></a><h3>gnomeprint.FontFace.get_glyph_stdadvance</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_stdadvance</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>advance</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> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>advance</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">get_glyph_stdadvance</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_glyph_stdbbox"><a name="method-gnomeprintfontface--get-glyph-stdbbox"></a><h3>gnomeprint.FontFace.get_glyph_stdbbox</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_stdbbox</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>bbox</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> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>bbox</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">get_glyph_stdbbox</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_glyph_stdkerning"><a name="method-gnomeprintfontface--get-glyph-stdkerning"></a><h3>gnomeprint.FontFace.get_glyph_stdkerning</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_stdkerning</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph0</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>glyph1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>kerning</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>glyph0</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>glyph1</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>kerning</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">get_glyph_stdkerning</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_glyph_stdoutline"><a name="method-gnomeprintfontface--get-glyph-stdoutline"></a><h3>gnomeprint.FontFace.get_glyph_stdoutline</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_stdoutline</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> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">get_glyph_stdoutline</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_glyph_width"><a name="method-gnomeprintfontface--get-glyph-width"></a><h3>gnomeprint.FontFace.get_glyph_width</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_glyph_width</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> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">get_glyph_width</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_name"><a name="method-gnomeprintfontface--get-name"></a><h3>gnomeprint.FontFace.get_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_name</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> </td></tr></tbody></table><p>
The <code class="methodname">get_name</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_num_glyphs"><a name="method-gnomeprintfontface--get-num-glyphs"></a><h3>gnomeprint.FontFace.get_num_glyphs</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_num_glyphs</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 number of glyphs, 0 on error.</td></tr></tbody></table><p>
The <code class="methodname">get_num_glyphs</code>() method returns the number of glyphs in the font.
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_ps_name"><a name="method-gnomeprintfontface--get-ps-name"></a><h3>gnomeprint.FontFace.get_ps_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_ps_name</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> </td></tr></tbody></table><p>
The <code class="methodname">get_ps_name</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_sample"><a name="method-gnomeprintfontface--get-sample"></a><h3>gnomeprint.FontFace.get_sample</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_sample</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> </td></tr></tbody></table><p>
The <code class="methodname">get_sample</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_species_name"><a name="method-gnomeprintfontface--get-species-name"></a><h3>gnomeprint.FontFace.get_species_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_species_name</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> </td></tr></tbody></table><p>
The <code class="methodname">get_species_name</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_stdbbox"><a name="method-gnomeprintfontface--get-stdbbox"></a><h3>gnomeprint.FontFace.get_stdbbox</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_stdbbox</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> </td></tr></tbody></table><p>
The <code class="methodname">get_stdbbox</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_underline_position"><a name="method-gnomeprintfontface--get-underline-position"></a><h3>gnomeprint.FontFace.get_underline_position</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_underline_position</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 underline position of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_underline_position</code>() method works with the standard Adobe encoding and without kerning or ligatures. When the text libs
get written, this function will be deprecated.
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_underline_thickness"><a name="method-gnomeprintfontface--get-underline-thickness"></a><h3>gnomeprint.FontFace.get_underline_thickness</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_underline_thickness</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 underline thickness of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_underline_thickness</code>() method works with the standard Adobe encoding and without kerning or ligatures. When the text
libs get written, this function will be deprecated.
</p></div><div class="refsect2" title="gnomeprint.FontFace.get_weight_code"><a name="method-gnomeprintfontface--get-weight-code"></a><h3>gnomeprint.FontFace.get_weight_code</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_weight_code</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> </td></tr></tbody></table><p>
The <code class="methodname">get_weight_code</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.is_fixed_width"><a name="method-gnomeprintfontface--is-fixed-width"></a><h3>gnomeprint.FontFace.is_fixed_width</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">is_fixed_width</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> </td></tr></tbody></table><p>
The <code class="methodname">is_fixed_width</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.is_italic"><a name="method-gnomeprintfontface--is-italic"></a><h3>gnomeprint.FontFace.is_italic</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">is_italic</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> </td></tr></tbody></table><p>
The <code class="methodname">is_italic</code>() method
</p></div><div class="refsect2" title="gnomeprint.FontFace.lookup_default"><a name="method-gnomeprintfontface--lookup-default"></a><h3>gnomeprint.FontFace.lookup_default</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">lookup_default</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unicode</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>unicode</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> glyph number, -1 if it is not mapped.</td></tr></tbody></table><p>
The <code class="methodname">lookup_default</code>() method get the glyph number corresponding to a given unicode.
</p></div></div><div class="refsect1" title="Functions"><a name="id2616068"></a><h2>Functions</h2><div class="refsect2" title="gnomeprint.font_face_find_closest_from_pango_description"><a name="function-gnomeprint--font-face-find-closest-from-pango-description"></a><h3>gnomeprint.font_face_find_closest_from_pango_description</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_face_find_closest_from_pango_description</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>desc</code></strong> :</span></p></td><td> a <code class="classname">pango.FontDescription</code>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">font_face_find_closest_from_pango_description</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_face_find_closest_from_pango_font"><a name="function-gnomeprint--font-face-find-closest-from-pango-font"></a><h3>gnomeprint.font_face_find_closest_from_pango_font</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_face_find_closest_from_pango_font</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pfont</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>pfont</code></strong> :</span></p></td><td> a <code class="classname">pango.Font</code>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">font_face_find_closest_from_pango_font</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_find_closest_from_full_name"><a name="function-gnomeprint--font-face-find-closest-from-full-name"></a><h3>gnomeprint.font_find_closest_from_full_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_find_closest_from_full_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>string</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>string</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">font_find_closest_from_full_name</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_face_find_closest_from_weight_slant"><a name="function-gnomeprint--font-face-find-closest-from-weight-slant"></a><h3>gnomeprint.font_face_find_closest_from_weight_slant</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_face_find_closest_from_weight_slant</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>family</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>weight</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>italic</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>family</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>weight</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>italic</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">font_face_find_closest_from_weight_slant</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_face_find_from_family_and_style"><a name="function-gnomeprint--font-face-find-from-family-and-style"></a><h3>gnomeprint.font_face_find_from_family_and_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_face_find_from_family_and_style</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>family</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>style</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>family</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>style</code></strong> :</span></p></td><td> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">font_face_find_from_family_and_style</code>() function
</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-gnomeprintfont.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gnomeprint-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gnomeprintglyphlist.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gnomeprint.Font </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gnomeprint.Glyphlist</td></tr></table></div></body></html>
|