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
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>gnomeprint.Font</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-gnomeprintjob.html" title="gnomeprint.Job"><link rel="next" href="class-gnomeprintfontface.html" title="gnomeprint.FontFace"></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.Font</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gnomeprintjob.html">Prev</a> </td><th width="60%" align="center">The Gnomeprint Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gnomeprintfontface.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gnomeprint.Font"><a name="class-gnomeprintfont"></a><div class="titlepage"></div><div class="refnamediv"><h2>gnomeprint.Font</h2><p>gnomeprint.Font — Font object for GnomePrint</p></div><div class="refsect1" title="Synopsis"><a name="id2593638"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gnomeprint.Font</span></span>(<span class="ooclass"><span class="classname">gobject.GObject</span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gnomeprintfont.html#constructor-gnomeprintfont" title="Constructor">gnomeprint.Font</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-gnomeprintfont.html#method-gnomeprintfont--get-ascender" title="gnomeprint.Font.get_ascender">get_ascender</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-descender" title="gnomeprint.Font.get_descender">get_descender</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-face" title="gnomeprint.Font.get_face">get_face</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-family-name" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-full-name" title="gnomeprint.Font.get_full_name">get_full_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-glyph-stdadvance" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-glyph-stdbbox" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-glyph-stdkerning" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-glyph-stdoutline" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-glyph-width" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-name" title="gnomeprint.Font.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-ps-name" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-size" title="gnomeprint.Font.get_size">get_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-size" title="gnomeprint.Font.get_size">get_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#method-gnomeprintfont--get-species-name" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-underline-position" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--get-underline-thickness" title="gnomeprint.Font.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-gnomeprintfont.html#method-gnomeprintfont--lookup-default" title="gnomeprint.Font.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-gnomeprintfont.html#function-gnomeprint--font-family-list" title="gnomeprint.font_family_list">gnomeprint.font_family_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#function-gnomeprint--font-find-closest" title="gnomeprint.font_find_closest">gnomeprint.font_find_closest</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</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-gnomeprintfont.html#function-gnomeprint--font-find-closest-from-full-name" title="gnomeprint.font_find_closest_from_full_name">gnomeprint.font_find_closest_from_full_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>string</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#function-gnomeprint--font-find-closest-from-weight-slant" title="gnomeprint.font_find_closest_from_weight_slant">gnomeprint.font_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>, <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-gnomeprintfont.html#function-gnomeprint--font-list" title="gnomeprint.font_list">gnomeprint.font_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gnomeprintfont.html#function-gnomeprint--font-style-list" title="gnomeprint.font_style_list">gnomeprint.font_style_list</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>family</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id2534864"></a><h2>Ancestry</h2><pre class="synopsis">+-- gobject.GObject
+-- <a class="link" href="class-gnomeprintfont.html" title="gnomeprint.Font">gnomeprint.Font</a>
</pre></div><div class="refsect1" title="Properties"><a name="id2608097"></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><tr valign="top"><td valign="top">"size"</td><td valign="top">Read</td><td valign="top">The size of the font.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="description-gnomeprintfont"></a><h2>Description</h2><p>
</p></div><div class="refsect1" title="Constructor"><a name="constructor-gnomeprintfont"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gnomeprint.Font</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></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>face</code></strong> :</span></p></td><td> a face font name.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>config</code></strong> :</span></p></td><td> a font size.</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-gnomeprintfont.html" title="gnomeprint.Font"><code class="classname">gnomeprint.Font</code></a>.
</td></tr></tbody></table><p>
Creates a new <a class="link" href="class-gnomeprintfont.html" title="gnomeprint.Font"><code class="classname">gnomeprint.Font</code></a> object.
</p></div><div class="refsect1" title="Methods"><a name="id2608563"></a><h2>Methods</h2><div class="refsect2" title="gnomeprint.Font.get_ascender"><a name="method-gnomeprintfont--get-ascender"></a><h3>gnomeprint.Font.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.Font.get_descender"><a name="method-gnomeprintfont--get-descender"></a><h3>gnomeprint.Font.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.Font.get_face"><a name="method-gnomeprintfont--get-face"></a><h3>gnomeprint.Font.get_face</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_face</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 face of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_face</code>() method
</p></div><div class="refsect2" title="gnomeprint.Font.get_family_name"><a name="method-gnomeprintfont--get-family-name"></a><h3>gnomeprint.Font.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 family name of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_family_name</code>() method
</p></div><div class="refsect2" title="gnomeprint.Font.get_full_name"><a name="method-gnomeprintfont--get-full-name"></a><h3>gnomeprint.Font.get_full_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_full_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 full name of the font.</td></tr></tbody></table><p>
The <code class="methodname">get_full_name</code>() method
</p></div><div class="refsect2" title="gnomeprint.Font.get_glyph_stdadvance"><a name="method-gnomeprintfont--get-glyph-stdadvance"></a><h3>gnomeprint.Font.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.Font.get_glyph_stdbbox"><a name="method-gnomeprintfont--get-glyph-stdbbox"></a><h3>gnomeprint.Font.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.Font.get_glyph_stdkerning"><a name="method-gnomeprintfont--get-glyph-stdkerning"></a><h3>gnomeprint.Font.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.Font.get_glyph_stdoutline"><a name="method-gnomeprintfont--get-glyph-stdoutline"></a><h3>gnomeprint.Font.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.Font.get_glyph_width"><a name="method-gnomeprintfont--get-glyph-width"></a><h3>gnomeprint.Font.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.Font.get_name"><a name="method-gnomeprintfont--get-name"></a><h3>gnomeprint.Font.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.Font.get_ps_name"><a name="method-gnomeprintfont--get-ps-name"></a><h3>gnomeprint.Font.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.Font.get_size"><a name="method-gnomeprintfont--get-size"></a><h3>gnomeprint.Font.get_size</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_size</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_size</code>() method
</p></div><div class="refsect2" title="gnomeprint.Font.get_species_name"><a name="method-gnomeprintfont--get-species-name"></a><h3>gnomeprint.Font.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.Font.get_underline_position"><a name="method-gnomeprintfont--get-underline-position"></a><h3>gnomeprint.Font.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.Font.get_underline_thickness"><a name="method-gnomeprintfont--get-underline-thickness"></a><h3>gnomeprint.Font.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.Font.lookup_default"><a name="method-gnomeprintfont--lookup-default"></a><h3>gnomeprint.Font.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="id2609880"></a><h2>Functions</h2><div class="refsect2" title="gnomeprint.font_family_list"><a name="function-gnomeprint--font-family-list"></a><h3>gnomeprint.font_family_list</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_family_list</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">font_family_list</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_find_closest"><a name="function-gnomeprint--font-find-closest"></a><h3>gnomeprint.font_find_closest</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_find_closest</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></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>name</code></strong> :</span></p></td><td> </td></tr><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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> </td></tr></tbody></table><p>
The <code class="methodname">font_find_closest</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_find_closest_from_full_name"><a name="function-gnomeprint--font-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_find_closest_from_weight_slant"><a name="function-gnomeprint--font-find-closest-from-weight-slant"></a><h3>gnomeprint.font_find_closest_from_weight_slant</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_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>, <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>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"><strong class="parameter"><code>size</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_weight_slant</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_list"><a name="function-gnomeprint--font-list"></a><h3>gnomeprint.font_list</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_list</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">font_list</code>() function
</p></div><div class="refsect2" title="gnomeprint.font_style_list"><a name="function-gnomeprint--font-style-list"></a><h3>gnomeprint.font_style_list</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gnomeprint.font_style_list</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">font_style_list</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-gnomeprintjob.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-gnomeprintfontface.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gnomeprint.Job </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gnomeprint.FontFace</td></tr></table></div></body></html>
|