File: //usr/local/ssl/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Xft Fonts and Rendering</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="Pango Reference Manual">
<link rel="up" href="rendering.html" title="Rendering with Pango">
<link rel="prev" href="pango-FreeType-Fonts-and-Rendering.html" title="FreeType Fonts and Rendering">
<link rel="next" href="pango-Cairo-Rendering.html" title="Cairo Rendering">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="pango.html" title="Basic Pango Interfaces">
<link rel="chapter" href="rendering.html" title="Rendering with Pango">
<link rel="chapter" href="lowlevel.html" title="Low Level Functionality">
<link rel="chapter" href="tools.html" title="Pango Tools">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 1.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 1.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 1.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 1.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 1.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 1.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 1.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="pango-FreeType-Fonts-and-Rendering.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rendering.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Pango Reference Manual</th>
<td><a accesskey="n" href="pango-Cairo-Rendering.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
 | 
<a href="#desc" class="shortcut">Description</a>
 | 
<a href="#object_hierarchy" class="shortcut">Object Hierarchy</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="pango-Xft-Fonts-and-Rendering"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="top_of_page"></a>Xft Fonts and Rendering</span></h2>
<p>Xft Fonts and Rendering — Font handling and rendering with the Xft backend</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="synopsis"></a><h2>Synopsis</h2>
<a name="PangoXftFont"></a><pre class="synopsis">
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFont-struct">PangoXftFont</a>;
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFontMap">PangoXftFontMap</a>;
#define <a href="pango-Xft-Fonts-and-Rendering.html#PANGO-RENDER-TYPE-XFT:CAPS">PANGO_RENDER_TYPE_XFT</a>
<a href="pango-Text-Processing.html#PangoContext">PangoContext</a>* <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-get-context">pango_xft_get_context</a> (Display *display,
int screen);
<a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>* <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-get-font-map">pango_xft_get_font_map</a> (Display *display,
int screen);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-set-default-substitute">pango_xft_set_default_substitute</a>
(Display *display,
int screen,
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftSubstituteFunc">PangoXftSubstituteFunc</a> func,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
<a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> notify);
void (<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftSubstituteFunc">*PangoXftSubstituteFunc</a>) (FcPattern *pattern,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-substitute-changed">pango_xft_substitute_changed</a> (Display *display,
int screen);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-shutdown-display">pango_xft_shutdown_display</a> (Display *display,
int screen);
XftFont* <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-get-font">pango_xft_font_get_font</a> (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);
Display* <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-get-display">pango_xft_font_get_display</a> (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-has-char">pango_xft_font_has_char</a> (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);
FT_Face <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-lock-face">pango_xft_font_lock_face</a> (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-unlock-face">pango_xft_font_unlock_face</a> (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-get-glyph">pango_xft_font_get_glyph</a> (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);
<a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-get-unknown-glyph">pango_xft_font_get_unknown_glyph</a>
(<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer">PangoXftRenderer</a>;
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRendererClass">PangoXftRendererClass</a>;
<a href="pango-PangoRenderer.html#PangoRenderer">PangoRenderer</a>* <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-renderer-new">pango_xft_renderer_new</a> (Display *display,
int screen);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-renderer-set-draw">pango_xft_renderer_set_draw</a> (<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer">PangoXftRenderer</a> *xftrenderer,
XftDraw *draw);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-renderer-set-default-color">pango_xft_renderer_set_default_color</a>
(<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer">PangoXftRenderer</a> *xftrenderer,
<a href="pango-Text-Attributes.html#PangoColor">PangoColor</a> *default_color);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-render">pango_xft_render</a> (XftDraw *draw,
XftColor *color,
<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-picture-render">pango_xft_picture_render</a> (Display *display,
Picture src_picture,
Picture dest_picture,
<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-render-transformed">pango_xft_render_transformed</a> (XftDraw *draw,
XftColor *color,
<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,
<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,
int x,
int y);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-render-layout-line">pango_xft_render_layout_line</a> (XftDraw *draw,
XftColor *color,
<a href="pango-Layout-Objects.html#PangoLayoutLine">PangoLayoutLine</a> *line,
int x,
int y);
void <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-render-layout">pango_xft_render_layout</a> (XftDraw *draw,
XftColor *color,
<a href="pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout,
int x,
int y);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="object_hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a href="pango-Fonts.html#PangoFont">PangoFont</a>
+----<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a>
+----PangoXftFont
</pre>
</div>
<div class="refsect1" lang="en">
<a name="desc"></a><h2>Description</h2>
<p>
The Xft library is a library for displaying fonts on the X window
system; internally it uses the fontconfig library to locate font
files, and the FreeType library to load and render fonts. The
Xft backend is the recommended Pango font backend for screen
display with X. (The <a href="pango-Cairo-Rendering.html" title="Cairo Rendering">Cairo back end</a> is another possibility.)
</p>
<p>
Using the Xft backend is generally straightforward;
<a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-get-context"><code class="function">pango_xft_get_context()</code></a> creates a context for a specified display
and screen. You can then create a <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> with that context
and render it with <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-render-layout"><code class="function">pango_xft_render_layout()</code></a>. At a more advanced
level, the lowlevel fontconfig options used for rendering fonts
can be affected using <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-set-default-substitute"><code class="function">pango_xft_set_default_substitute()</code></a>, and
<a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-substitute-changed"><code class="function">pango_xft_substitute_changed()</code></a>.
</p>
<p>
A range of functions for drawing pieces of a layout, such as
individual layout lines and glyphs strings are provided. You can also
directly create a <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a>. Finally, in some advanced cases, it
is useful to derive from <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a>. Deriving from
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a> is useful for two reasons. One reason is be to
support custom attributes by overriding <a href="pango-PangoRenderer.html#PangoRendererClass"><span class="type">PangoRendererClass</span></a> virtual
functions like 'prepare_run' or 'draw_shape'. The reason is to
customize exactly how the final bits are drawn to the destination by
overring the <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRendererClass"><span class="type">PangoXftRendererClass</span></a> virtual functions
'composite_glyphs' and 'composite_trapezoids'.
</p>
</div>
<div class="refsect1" lang="en">
<a name="details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2857528"></a><h3>
<a name="PangoXftFont-struct"></a>PangoXftFont</h3>
<a class="indexterm" name="id2857539"></a><pre class="programlisting">typedef struct _PangoXftFont PangoXftFont;</pre>
<p>
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFont"><span class="type">PangoXftFont</span></a> is an implementation of <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> using the Xft
library for rendering. It is used in conjunction with <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFontMap"><span class="type">PangoXftFontMap</span></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2857581"></a><h3>
<a name="PangoXftFontMap"></a>PangoXftFontMap</h3>
<a class="indexterm" name="id2857594"></a><pre class="programlisting">typedef struct _PangoXftFontMap PangoXftFontMap;</pre>
<p>
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFontMap"><span class="type">PangoXftFontMap</span></a> is an implementation of <a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</span></a> suitable for
the Xft library as the renderer. It is used in to create fonts of
type <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFont"><span class="type">PangoXftFont</span></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2857636"></a><h3>
<a name="PANGO-RENDER-TYPE-XFT:CAPS"></a>PANGO_RENDER_TYPE_XFT</h3>
<a class="indexterm" name="id2857652"></a><pre class="programlisting">#define PANGO_RENDER_TYPE_XFT "PangoRenderXft"
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PANGO_RENDER_TYPE_XFT</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
A string constant that was used to identify shape engines that work
with the Xft backend. See <a href="PangoFcFont.html#PANGO-RENDER-TYPE-FC:CAPS"><code class="literal">PANGO_RENDER_TYPE_FC</code></a> for the replacement.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2857693"></a><h3>
<a name="pango-xft-get-context"></a>pango_xft_get_context ()</h3>
<a class="indexterm" name="id2857706"></a><pre class="programlisting"><a href="pango-Text-Processing.html#PangoContext">PangoContext</a>* pango_xft_get_context (Display *display,
int screen);</pre>
<p>
Retrieves a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> appropriate for rendering with
Xft fonts on the given screen of the given display.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X display.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em> :</span></td>
<td> an X screen.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2857806"></a><h3>
<a name="pango-xft-get-font-map"></a>pango_xft_get_font_map ()</h3>
<a class="indexterm" name="id2857821"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>* pango_xft_get_font_map (Display *display,
int screen);</pre>
<p>
Returns the <span class="type">PangoXftFontmap</span> for the given display and screen.
The fontmap is owned by Pango and will be valid until
the display is closed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X display
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em> :</span></td>
<td> the screen number of a screen within <em class="parameter"><code>display</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> object, owned by Pango.
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2857933"></a><h3>
<a name="pango-xft-set-default-substitute"></a>pango_xft_set_default_substitute ()</h3>
<a class="indexterm" name="id2857949"></a><pre class="programlisting">void pango_xft_set_default_substitute
(Display *display,
int screen,
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftSubstituteFunc">PangoXftSubstituteFunc</a> func,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
<a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> notify);</pre>
<p>
Sets a function that will be called to do final configuration
substitution on a <span class="type">FcPattern</span> before it is used to load
the font. This function can be used to do things like set
hinting and antialiasing options.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X Display
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em> :</span></td>
<td> the screen number of a screen within <em class="parameter"><code>display</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>func</code></em> :</span></td>
<td> function to call to to do final config tweaking
on <span class="type">FcPattern</span> objects.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
<td> data to pass to <em class="parameter"><code>func</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>notify</code></em> :</span></td>
<td> function to call when <em class="parameter"><code>data</code></em> is no longer used.
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858129"></a><h3>
<a name="PangoXftSubstituteFunc"></a>PangoXftSubstituteFunc ()</h3>
<a class="indexterm" name="id2858143"></a><pre class="programlisting">void (*PangoXftSubstituteFunc) (FcPattern *pattern,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Function type for doing final config tweaking on prepared FcPatterns.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pattern</code></em> :</span></td>
<td>the FcPattern to tweak.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
<td>user data.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858212"></a><h3>
<a name="pango-xft-substitute-changed"></a>pango_xft_substitute_changed ()</h3>
<a class="indexterm" name="id2858228"></a><pre class="programlisting">void pango_xft_substitute_changed (Display *display,
int screen);</pre>
<p>
Call this function any time the results of the
default substitution function set with
<a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-set-default-substitute"><code class="function">pango_xft_set_default_substitute()</code></a> change.
That is, if your subsitution function will return different
results for the same input pattern, you must call this function.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X Display
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em> :</span></td>
<td> the screen number of a screen within <em class="parameter"><code>display</code></em>
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858325"></a><h3>
<a name="pango-xft-shutdown-display"></a>pango_xft_shutdown_display ()</h3>
<a class="indexterm" name="id2858340"></a><pre class="programlisting">void pango_xft_shutdown_display (Display *display,
int screen);</pre>
<p>
Release any resources that have been cached for the
combination of <em class="parameter"><code>display</code></em> and <em class="parameter"><code>screen</code></em>. Note that when the
X display is closed, resources are released automatically,
without needing to call this function.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X display
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em> :</span></td>
<td> the screen number of a screen within <em class="parameter"><code>display</code></em>
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858436"></a><h3>
<a name="pango-xft-font-get-font"></a>pango_xft_font_get_font ()</h3>
<a class="indexterm" name="id2858450"></a><pre class="programlisting">XftFont* pango_xft_font_get_font (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre>
<p>
Returns the XftFont of a font.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the XftFont associated to <em class="parameter"><code>font</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858524"></a><h3>
<a name="pango-xft-font-get-display"></a>pango_xft_font_get_display ()</h3>
<a class="indexterm" name="id2858538"></a><pre class="programlisting">Display* pango_xft_font_get_display (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre>
<p>
Returns the X display of the XftFont of a font.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the X display of the XftFont associated to <em class="parameter"><code>font</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858612"></a><h3>
<a name="pango-xft-font-has-char"></a>pango_xft_font_has_char ()</h3>
<a class="indexterm" name="id2858628"></a><a class="indexterm" name="id2858636"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> pango_xft_font_has_char (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_xft_font_has_char</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Determines whether <em class="parameter"><code>font</code></em> has a glyph for the codepoint <em class="parameter"><code>wc</code></em>.
</p>
<p>
Use <a href="PangoFcFont.html#pango-fc-font-has-char"><code class="function">pango_fc_font_has_char()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> for the Xft backend
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wc</code></em> :</span></td>
<td> Unicode codepoint to look up
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>font</code></em> has the requested codepoint.
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858785"></a><h3>
<a name="pango-xft-font-lock-face"></a>pango_xft_font_lock_face ()</h3>
<a class="indexterm" name="id2858801"></a><a class="indexterm" name="id2858809"></a><pre class="programlisting">FT_Face pango_xft_font_lock_face (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_xft_font_lock_face</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Gets the FreeType FT_Face associated with a font,
This face will be kept around until you call
<a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-unlock-face"><code class="function">pango_xft_font_unlock_face()</code></a>.
</p>
<p>
Use <a href="PangoFcFont.html#pango-fc-font-lock-face"><code class="function">pango_fc_font_lock_face()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the FreeType FT_Face associated with <em class="parameter"><code>font</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2858925"></a><h3>
<a name="pango-xft-font-unlock-face"></a>pango_xft_font_unlock_face ()</h3>
<a class="indexterm" name="id2858941"></a><a class="indexterm" name="id2858949"></a><pre class="programlisting">void pango_xft_font_unlock_face (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_xft_font_unlock_face</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Releases a font previously obtained with
<a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-lock-face"><code class="function">pango_xft_font_lock_face()</code></a>.
</p>
<p>
Use <a href="PangoFcFont.html#pango-fc-font-unlock-face"><code class="function">pango_fc_font_unlock_face()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr></tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859047"></a><h3>
<a name="pango-xft-font-get-glyph"></a>pango_xft_font_get_glyph ()</h3>
<a class="indexterm" name="id2859062"></a><a class="indexterm" name="id2859070"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> pango_xft_font_get_glyph (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_xft_font_get_glyph</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Gets the glyph index for a given Unicode character
for <em class="parameter"><code>font</code></em>. If you only want to determine
whether the font has the glyph, use <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-font-has-char"><code class="function">pango_xft_font_has_char()</code></a>.
</p>
<p>
Use <a href="PangoFcFont.html#pango-fc-font-get-glyph"><code class="function">pango_fc_font_get_glyph()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> for the Xft backend
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wc</code></em> :</span></td>
<td> Unicode codepoint to look up
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the glyph index, or 0, if the Unicode
character does not exist in the font.
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859211"></a><h3>
<a name="pango-xft-font-get-unknown-glyph"></a>pango_xft_font_get_unknown_glyph ()</h3>
<a class="indexterm" name="id2859227"></a><pre class="programlisting"><a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> pango_xft_font_get_unknown_glyph
(<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_xft_font_get_unknown_glyph</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the index of a glyph suitable for drawing <em class="parameter"><code>wc</code></em> as an
unknown character.
</p>
<p>
Use <a href="pango-Glyph-Storage.html#PANGO-GET-UNKNOWN-GLYPH:CAPS"><code class="function">PANGO_GET_UNKNOWN_GLYPH()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wc</code></em> :</span></td>
<td> the Unicode character for which a glyph is needed.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a glyph index into <em class="parameter"><code>font</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859358"></a><h3>
<a name="PangoXftRenderer"></a>PangoXftRenderer</h3>
<a class="indexterm" name="id2859373"></a><pre class="programlisting">typedef struct {
} PangoXftRenderer;
</pre>
<p>
<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a> is a subclass of <a href="pango-PangoRenderer.html#PangoRenderer"><span class="type">PangoRenderer</span></a> used for rendering
with Pango's Xft backend. It can be used directly, or it can be
further subclassed to modify exactly how drawing of individual
elements occurs.</p>
<p>
</p>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859416"></a><h3>
<a name="PangoXftRendererClass"></a>PangoXftRendererClass</h3>
<a class="indexterm" name="id2859432"></a><pre class="programlisting">typedef struct {
void (*composite_trapezoids) (PangoXftRenderer *xftrenderer,
PangoRenderPart part,
XTrapezoid *trapezoids,
int n_trapezoids);
void (*composite_glyphs) (PangoXftRenderer *xftrenderer,
XftFont *xft_font,
XftGlyphSpec *glyphs,
int n_glyphs);
} PangoXftRendererClass;
</pre>
<p>
The class structure for <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="structfield"><code>composite_trapezoids</code></em> ()</span></td>
<td> draw the specified trapezoids using
the current color and other attributes for <em class="parameter"><code>part</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="structfield"><code>composite_glyphs</code></em> ()</span></td>
<td> draw the specified glyphs using
the current foreground color and other foreground
attributes
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859508"></a><h3>
<a name="pango-xft-renderer-new"></a>pango_xft_renderer_new ()</h3>
<a class="indexterm" name="id2859524"></a><pre class="programlisting"><a href="pango-PangoRenderer.html#PangoRenderer">PangoRenderer</a>* pango_xft_renderer_new (Display *display,
int screen);</pre>
<p>
Create a new <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a> to allow rendering Pango objects
with the Xft library. You must call <a href="pango-Xft-Fonts-and-Rendering.html#pango-xft-renderer-set-draw"><code class="function">pango_xft_renderer_set_draw()</code></a> before
using the renderer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X display
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em> :</span></td>
<td> the index of the screen for <em class="parameter"><code>display</code></em> to which rendering will be done
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the newly created <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a>, which should
be freed with <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859656"></a><h3>
<a name="pango-xft-renderer-set-draw"></a>pango_xft_renderer_set_draw ()</h3>
<a class="indexterm" name="id2859672"></a><pre class="programlisting">void pango_xft_renderer_set_draw (<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer">PangoXftRenderer</a> *xftrenderer,
XftDraw *draw);</pre>
<p>
Sets the <span class="type">XftDraw</span> object that the renderer is drawing to.
The renderer must not be currently active.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>xftrenderer</code></em> :</span></td>
<td> a <a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer"><span class="type">PangoXftRenderer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>draw</code></em> :</span></td>
<td> a <span class="type">XftDraw</span>
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859773"></a><h3>
<a name="pango-xft-renderer-set-default-color"></a>pango_xft_renderer_set_default_color ()</h3>
<a class="indexterm" name="id2859789"></a><pre class="programlisting">void pango_xft_renderer_set_default_color
(<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftRenderer">PangoXftRenderer</a> *xftrenderer,
<a href="pango-Text-Attributes.html#PangoColor">PangoColor</a> *default_color);</pre>
<p>
Sets the default foreground color for a <span class="type">XftRenderer</span>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>xftrenderer</code></em> :</span></td>
<td> a <span class="type">XftRenderer</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_color</code></em> :</span></td>
<td> the default foreground color
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2859884"></a><h3>
<a name="pango-xft-render"></a>pango_xft_render ()</h3>
<a class="indexterm" name="id2859897"></a><pre class="programlisting">void pango_xft_render (XftDraw *draw,
XftColor *color,
<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<p>
Renders a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> onto an <span class="type">XftDraw</span> object wrapping an X drawable.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>draw</code></em> :</span></td>
<td> the <span class="type">XftDraw</span> object.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em> :</span></td>
<td> the color in which to draw the string
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> the font in which to draw the string
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>glyphs</code></em> :</span></td>
<td> the glyph string to draw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> the x position of start of string (in pixels)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> the y position of baseline (in pixels)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2860073"></a><h3>
<a name="pango-xft-picture-render"></a>pango_xft_picture_render ()</h3>
<a class="indexterm" name="id2860086"></a><pre class="programlisting">void pango_xft_picture_render (Display *display,
Picture src_picture,
Picture dest_picture,
<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<p>
Renders a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> onto an Xrender <span class="type">Picture</span> object.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>display</code></em> :</span></td>
<td> an X display
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>src_picture</code></em> :</span></td>
<td> the source picture to draw the string with
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>dest_picture</code></em> :</span></td>
<td> the destination picture to draw the strign onto
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> the font in which to draw the string
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>glyphs</code></em> :</span></td>
<td> the glyph string to draw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> the x position of start of string (in pixels)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> the y position of baseline (in pixels)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2860281"></a><h3>
<a name="pango-xft-render-transformed"></a>pango_xft_render_transformed ()</h3>
<a class="indexterm" name="id2860297"></a><pre class="programlisting">void pango_xft_render_transformed (XftDraw *draw,
XftColor *color,
<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,
<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,
int x,
int y);</pre>
<p>
Renders a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a> onto a <span class="type">XftDraw</span>, possibly
transforming the layed-out coordinates through a transformation
matrix. Note that the transformation matrix for <em class="parameter"><code>font</code></em> is not
changed, so to produce correct rendering results, the <em class="parameter"><code>font</code></em>
must have been loaded using a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> with an identical
transformation matrix to that passed in to this function.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>draw</code></em> :</span></td>
<td> an <span class="type">XftDraw</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em> :</span></td>
<td> the color in which to draw the glyphs
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>matrix</code></em> :</span></td>
<td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to use an identity transformation
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em> :</span></td>
<td> the font in which to draw the string
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>glyphs</code></em> :</span></td>
<td> the glyph string to draw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> the x position of the start of the string (in Pango
units in user space coordinates)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> the y position of the baseline (in Pango units
in user space coordinates)
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2860550"></a><h3>
<a name="pango-xft-render-layout-line"></a>pango_xft_render_layout_line ()</h3>
<a class="indexterm" name="id2860566"></a><pre class="programlisting">void pango_xft_render_layout_line (XftDraw *draw,
XftColor *color,
<a href="pango-Layout-Objects.html#PangoLayoutLine">PangoLayoutLine</a> *line,
int x,
int y);</pre>
<p>
Render a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> onto a <span class="type">XftDraw</span></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>draw</code></em> :</span></td>
<td> an <span class="type">XftDraw</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em> :</span></td>
<td> the foreground color in which to draw the layout line
(may be overriden by color attributes)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>line</code></em> :</span></td>
<td> a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> the x position of start of string (in Pango units)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> the y position of baseline (in Pango units)
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2860740"></a><h3>
<a name="pango-xft-render-layout"></a>pango_xft_render_layout ()</h3>
<a class="indexterm" name="id2860755"></a><pre class="programlisting">void pango_xft_render_layout (XftDraw *draw,
XftColor *color,
<a href="pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout,
int x,
int y);</pre>
<p>
Render a <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> onto a <span class="type">XftDraw</span></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>draw</code></em> :</span></td>
<td> an <span class="type">XftDraw</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em> :</span></td>
<td> the foreground color in which to draw the layout
(may be overriden by color attributes)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>layout</code></em> :</span></td>
<td> a <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> the X position of the left of the layout (in Pango units)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> the Y position of the top of the layout (in Pango units)
</td>
</tr>
</tbody>
</table></div>
<p>Since 1.8
</p>
</div>
</div>
</div>
</body>
</html>