⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pango-x-fonts-and-rendering.html

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>Deprecated X font backend</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-ATSUI-Fonts.html" title="ATSUI Fonts"><link rel="next" href="lowlevel.html" title="Low Level Functionality"><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"><link rel="index" href="ix10.html" title="Index of new symbols in 1.16"></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-ATSUI-Fonts.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="lowlevel.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>                  &#160;|&#160;                  <a href="#desc" class="shortcut">Description</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="pango-X-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>Deprecated X font backend</span></h2><p>Deprecated X font backend &#8212; Font handling and rendering with the deprecated X font backend</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><a name="synopsis"></a><h2>Synopsis</h2><pre class="synopsis">#define     <a href="pango-X-Fonts-and-Rendering.html#PANGO-RENDER-TYPE-X:CAPS">PANGO_RENDER_TYPE_X</a><a href="pango-Text-Processing.html#PangoContext">PangoContext</a>* <a href="pango-X-Fonts-and-Rendering.html#pango-x-get-context">pango_x_get_context</a>           (Display *display);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-context-set-funcs">pango_x_context_set_funcs</a>       (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoGetGCFunc">PangoGetGCFunc</a> get_gc_func,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoFreeGCFunc">PangoFreeGCFunc</a> free_gc_func);GC          (<a href="pango-X-Fonts-and-Rendering.html#PangoGetGCFunc">*PangoGetGCFunc</a>)               (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             <a href="pango-Text-Attributes.html#PangoColor">PangoColor</a> *color,                                             GC base_gc);void        (<a href="pango-X-Fonts-and-Rendering.html#PangoFreeGCFunc">*PangoFreeGCFunc</a>)              (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             GC gc);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-render">pango_x_render</a>                  (Display *display,                                             Drawable d,                                             GC gc,                                             <a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,                                             <ahref="../glib/glib-Basic-Types.html#gint">gint</a> x,                                             <ahref="../glib/glib-Basic-Types.html#gint">gint</a> y);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-render-layout-line">pango_x_render_layout_line</a>      (Display *display,                                             Drawable drawable,                                             GC gc,                                             <a href="pango-Layout-Objects.html#PangoLayoutLine">PangoLayoutLine</a> *line,                                             int x,                                             int y);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-render-layout">pango_x_render_layout</a>           (Display *display,                                             Drawable drawable,                                             GC gc,                                             <a href="pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout,                                             int x,                                             int y);typedef     <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont">PangoXSubfont</a>;#define     <a href="pango-X-Fonts-and-Rendering.html#PANGO-X-MAKE-GLYPH:CAPS">PANGO_X_MAKE_GLYPH</a>              (subfont,index_)#define     <a href="pango-X-Fonts-and-Rendering.html#PANGO-X-GLYPH-SUBFONT:CAPS">PANGO_X_GLYPH_SUBFONT</a>           (glyph)#define     <a href="pango-X-Fonts-and-Rendering.html#PANGO-X-GLYPH-INDEX:CAPS">PANGO_X_GLYPH_INDEX</a>             (glyph)<a href="pango-Fonts.html#PangoFont">PangoFont</a>*  <a href="pango-X-Fonts-and-Rendering.html#pango-x-load-font">pango_x_load_font</a>               (Display *display,                                             const <ahref="../glib/glib-Basic-Types.html#gchar">gchar</a> *spec);<a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a>  <a href="pango-X-Fonts-and-Rendering.html#pango-x-get-unknown-glyph">pango_x_get_unknown_glyph</a>       (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);<ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a>    <a href="pango-X-Fonts-and-Rendering.html#pango-x-has-glyph">pango_x_has_glyph</a>               (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> glyph);int         <a href="pango-X-Fonts-and-Rendering.html#pango-x-list-subfonts">pango_x_list_subfonts</a>           (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             char **charsets,                                             int n_charsets,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont">PangoXSubfont</a> **subfont_ids,                                             int **subfont_charsets);<a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>* <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-map-for-display">pango_x_font_map_for_display</a>  (Display *display);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-shutdown-display">pango_x_shutdown_display</a>        (Display *display);<a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a>* <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-map-get-font-cache">pango_x_font_map_get_font_cache</a>                                            (<a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> *font_map);char*       <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-subfont-xlfd">pango_x_font_subfont_xlfd</a>       (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont">PangoXSubfont</a> subfont_id);<ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a>    <a href="pango-X-Fonts-and-Rendering.html#pango-x-find-first-subfont">pango_x_find_first_subfont</a>      (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             char **charsets,                                             int n_charsets,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont">PangoXSubfont</a> *rfont);<a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a>  <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-get-unknown-glyph">pango_x_font_get_unknown_glyph</a>  (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);<ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a>    <a href="pango-X-Fonts-and-Rendering.html#pango-x-apply-ligatures">pango_x_apply_ligatures</a>         (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont">PangoXSubfont</a> subfont,                                             <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> **glyphs,                                             int *n_glyphs,                                             int **clusters);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-fallback-shape">pango_x_fallback_shape</a>          (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs,                                             const char *text,                                             int n_chars);            <a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a>;<a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a>* <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-cache-new">pango_x_font_cache_new</a>     (Display *display);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-cache-free">pango_x_font_cache_free</a>         (<a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a> *cache);XFontStruct* <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-cache-load">pango_x_font_cache_load</a>        (<a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a> *cache,                                             const char *xlfd);void        <a href="pango-X-Fonts-and-Rendering.html#pango-x-font-cache-unload">pango_x_font_cache_unload</a>       (<a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a> *cache,                                             XFontStruct *fs);</pre></div><div class="refsect1" lang="en"><a name="desc"></a><h2>Description</h2><p>The functions and macros in this section are for use with the oldX font backend which used server-side bitmap fonts. This font backendis no longer supported, and attempts to use it will produceunpredictable results. Use the <a href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">Xft</a>or <a href="pango-Cairo-Rendering.html" title="Cairo Rendering">Cairo</a> backend instead.</p></div><div class="refsect1" lang="en"><a name="details"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2901343"></a><h3><a name="PANGO-RENDER-TYPE-X:CAPS"></a>PANGO_RENDER_TYPE_X</h3><a class="indexterm" name="id2901358"></a><pre class="programlisting">#define PANGO_RENDER_TYPE_X "PangoRenderX"</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_X</code> is deprecated and should not be used in newly-written code.</p></div><p>A string constant identifying the X renderer. The associated quark (see <ahref="../glib/glib-Quarks.html#g-quark-from-string"><code class="function">g_quark_from_string()</code></a>) is used to identify the renderer in <a href="pango-Modules.html#pango-find-map"><code class="function">pango_find_map()</code></a>. </p></div><hr><div class="refsect2" lang="en"><a name="id2901408"></a><h3><a name="pango-x-get-context"></a>pango_x_get_context ()</h3><a class="indexterm" name="id2901424"></a><pre class="programlisting"><a href="pango-Text-Processing.html#PangoContext">PangoContext</a>* pango_x_get_context           (Display *display);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_get_context</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> appropriate for rendering with X fonts on thegiven 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>&#160;:</span></td><td> an X display (As returned by <code class="function">XOpenDisplay()</code>.)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</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="id2901525"></a><h3><a name="pango-x-context-set-funcs"></a>pango_x_context_set_funcs ()</h3><a class="indexterm" name="id2901542"></a><pre class="programlisting">void        pango_x_context_set_funcs       (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoGetGCFunc">PangoGetGCFunc</a> get_gc_func,                                             <a href="pango-X-Fonts-and-Rendering.html#PangoFreeGCFunc">PangoFreeGCFunc</a> free_gc_func);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_context_set_funcs</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the functions that will be used to get GC's in various colors whenrendering layouts with this context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>get_gc_func</code></em>&#160;:</span></td><td> function called to create a new GC for a given color.</td></tr><tr><td><span class="term"><em class="parameter"><code>free_gc_func</code></em>&#160;:</span></td><td> function called to free a GC created with <em class="parameter"><code>get_gc_func</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2901664"></a><h3><a name="PangoGetGCFunc"></a>PangoGetGCFunc ()</h3><a class="indexterm" name="id2901679"></a><pre class="programlisting">GC          (*PangoGetGCFunc)               (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             <a href="pango-Text-Attributes.html#PangoColor">PangoColor</a> *color,                                             GC base_gc);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">PangoGetGCFunc</code> is deprecated and should not be used in newly-written code.</p></div><p>Specifies the type of the function used to create a new GC for a givencolor. </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td>a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td><td>the color to create a new GC for.</td></tr><tr><td><span class="term"><em class="parameter"><code>base_gc</code></em>&#160;:</span></td><td>the GC to base the new GC on.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td>the new GC.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2901801"></a><h3><a name="PangoFreeGCFunc"></a>PangoFreeGCFunc ()</h3><a class="indexterm" name="id2901816"></a><pre class="programlisting">void        (*PangoFreeGCFunc)              (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             GC gc);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">PangoFreeGCFunc</code> is deprecated and should not be used in newly-written code.</p></div><p>Specifies the type of the function used to free a GC created with the corresponding <a href="pango-X-Fonts-and-Rendering.html#PangoGetGCFunc"><span class="type">PangoGetGCFunc</span></a> function.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td>a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>gc</code></em>&#160;:</span></td><td>the GC to free.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2901914"></a><h3><a name="pango-x-render"></a>pango_x_render ()</h3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -