/usr/share/gtk-doc/html/pygtk/class-pangocairocairofontmap.html is in python-gtk2-doc 2.24.0-3.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pangocairo.CairoFontMap</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="pangocairo-class-reference.html" title="The pangocairo Class Reference"><link rel="prev" href="class-pangocairocairocontext.html" title="pangocairo.CairoContext"><link rel="next" href="pangocairo-functions.html" title="pangocairo Functions"></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">pangocairo.CairoFontMap</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangocairocairocontext.html">Prev</a> </td><th width="60%" align="center">The pangocairo Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="pangocairo-functions.html">Next</a></td></tr></table><hr></div><div class="refentry" title="pangocairo.CairoFontMap"><a name="class-pangocairocairofontmap"></a><div class="titlepage"></div><div class="refnamediv"><h2>pangocairo.CairoFontMap</h2><p>pangocairo.CairoFontMap — object providing support for using font maps with
Cairo (new in PyGTK 2.8)</p></div><div class="refsect1" title="Synopsis"><a name="id3026967"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pangocairo.CairoFontMap</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-pangocairocairofontmap.html" title="pangocairo.CairoFontMap">pangocairo.CairoFontMap</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-pangocairocairofontmap.html#constructor-pangocairocairofontmap" title="Constructor">pangocairo.CairoFontMap</a></span>()</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangocairocairofontmap.html#method-pangocairocairofontmap--set-resolution" title="pangocairo.CairoFontMap.set_resolution">set_resolution</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dpi</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangocairocairofontmap.html#method-pangocairocairofontmap--get-resolution" title="pangocairo.CairoFontMap.get_resolution">get_resolution</a></span>()</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangocairocairofontmap.html#method-pangocairocairofontmap--create-context" title="pangocairo.CairoFontMap.create_context">create_context</a></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-pangocairocairofontmap.html#function-pangocairo--cairo-font-map-get-default" title="pangocairo.cairo_font_map_get_default">pangocairo.cairo_font_map_get_default</a></span>()</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3016673"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-pangofontmap.html" title="pango.FontMap">pango.FontMap</a>
+-- <a class="link" href="class-pangocairocairofontmap.html" title="pangocairo.CairoFontMap">pangocairo.CairoFontMap</a>
</pre></div><div class="refsect1" title="Description"><a name="id2953791"></a><h2>Description</h2><p><a class="link" href="class-pangocairocairofontmap.html" title="pangocairo.CairoFontMap"><code class="classname">pangocairo.CairoFontMap</code></a>
is an interface exported by font maps for use with Cairo. The actual type of
the font map will depend on the particular font technology Cairo was
compiled to use.</p><p>Cairo is a graphics library that supports vector graphics and
image compositing that can be used with PyGTK. Since 2.8, GTK+ and Pango do
most of their drawing using Cairo. The Cairo drawing model and primitives
are similar to PostScript which uses an imaging model of painting on a two
dimensional surface.</p></div><div class="refsect1" title="Constructor"><a name="constructor-pangocairocairofontmap"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">pangocairo.CairoFontMap</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 new <a class="link" href="class-pangocairocairofontmap.html" title="pangocairo.CairoFontMap"><code class="classname">pangocairo.CairoFontMap</code></a> object</td></tr></tbody></table><p>Creates a new <a class="link" href="class-pangocairocairofontmap.html" title="pangocairo.CairoFontMap"><code class="classname">pangocairo.CairoFontMap</code></a>
object; a fontmap is used to cache information about available fonts, and
holds certain global parameters such as the resolution. In most cases, you
can use the <a class="link" href="class-pangocairocairofontmap.html#function-pangocairo--cairo-font-map-get-default" title="pangocairo.cairo_font_map_get_default"><code class="function">pangocairo.cairo_font_map_get_default</code>()</a>
function instead.</p><p>Note that the type of the returned object will depend on the
particular font backend Cairo was compiled to use; You generally should only
use the <a class="link" href="class-pangofontmap.html" title="pango.FontMap"><code class="classname">pango.FontMap</code></a> and
<a class="link" href="class-pangocairocairofontmap.html" title="pangocairo.CairoFontMap"><code class="classname">pangocairo.CairoFontMap</code></a>
interfaces on the returned object.</p></div><div class="refsect1" title="Methods"><a name="id2923097"></a><h2>Methods</h2><div class="refsect2" title="pangocairo.CairoFontMap.set_resolution"><a name="method-pangocairocairofontmap--set-resolution"></a><h3>pangocairo.CairoFontMap.set_resolution</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_resolution</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dpi</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>dpi</code></strong> :</span></p></td><td>the resolution in "dots per inch". (Physical
inches aren't actually involved; the terminology is
conventional.)</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.8 and above.</p></div><p>The <code class="methodname">set_resolution</code>() method sets the
resolution for the fontmap to the value specified by
<em class="parameter"><code>dpi</code></em>. This is a scale factor between the points
specified in a <a class="link" href="class-pangofontdescription.html" title="pango.FontDescription"><code class="classname">pango.FontDescription</code></a>
and Cairo units. The default value is 96, meaning that a 10 point font will
be 13 units high. (10 * 96. / 72. = 13.3).</p></div><div class="refsect2" title="pangocairo.CairoFontMap.get_resolution"><a name="method-pangocairocairofontmap--get-resolution"></a><h3>pangocairo.CairoFontMap.get_resolution</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_resolution</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 resolution in
"dots per inch"</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.8 and above.</p></div><p>The <code class="methodname">get_resolution</code>() method returns the
resolution for the fontmap. See the <a class="link" href="class-pangocairocairofontmap.html#method-pangocairocairofontmap--set-resolution" title="pangocairo.CairoFontMap.set_resolution"><code class="methodname">set_resolution</code>()</a>
method for more information.</p></div><div class="refsect2" title="pangocairo.CairoFontMap.create_context"><a name="method-pangocairocairofontmap--create-context"></a><h3>pangocairo.CairoFontMap.create_context</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">create_context</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 new <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
object</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.8 and above.</p></div><p>The <code class="methodname">create_context</code>() method creates a
new <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a>
object.</p></div></div><div class="refsect1" title="Functions"><a name="id2998560"></a><h2>Functions</h2><div class="refsect2" title="pangocairo.cairo_font_map_get_default"><a name="function-pangocairo--cairo-font-map-get-default"></a><h3>pangocairo.cairo_font_map_get_default</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">pangocairo.cairo_font_map_get_default</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 default Cairo fontmap for
Pango.</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 function is available in PyGTK 2.8 and above.</p></div><p>The <code class="function">pangocairo.cairo_font_map_get_default</code>()
function returns the default font map to use with Cairo.</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-pangocairocairocontext.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pangocairo-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pangocairo-functions.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">pangocairo.CairoContext </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> pangocairo Functions</td></tr></table></div></body></html>
|