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

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

📁 linux
💻 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.72.0"><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.8 (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="chapter" href="pango-hierarchy.html" title="Object Hierarchy"><link rel="index" href="index-all.html" title="Index"><link rel="index" href="index-deprecated.html" title="Index of deprecated symbols"><link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2"><link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4"><link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6"><link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8"><link rel="index" href="index-1.10.html" title="Index of new symbols in 1.10"><link rel="index" href="index-1.12.html" title="Index of new symbols in 1.12"><link rel="index" href="index-1.14.html" title="Index of new symbols in 1.14"><link rel="index" href="index-1.16.html" title="Index of new symbols in 1.16"><link rel="index" href="index-1.18.html" title="Index of new symbols in 1.18"></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="#id3234421" class="shortcut">Top</a>                  &#160;|&#160;                  <a href="#id3236346" 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><a name="id3234421"></a><span class="refentrytitle">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"><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="id3236346"></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="id3236382"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3236392"></a><h3><a name="PANGO-RENDER-TYPE-X:CAPS"></a>PANGO_RENDER_TYPE_X</h3><a class="indexterm" name="id3236407"></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="id3236458"></a><h3><a name="pango-x-get-context"></a>pango_x_get_context ()</h3><a class="indexterm" name="id3236474"></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="id3236575"></a><h3><a name="pango-x-context-set-funcs"></a>pango_x_context_set_funcs ()</h3><a class="indexterm" name="id3236592"></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="id3236715"></a><h3><a name="PangoGetGCFunc"></a>PangoGetGCFunc ()</h3><a class="indexterm" name="id3236730"></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="id3236853"></a><h3><a name="PangoFreeGCFunc"></a>PangoFreeGCFunc ()</h3><a class="indexterm" name="id3236868"></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>

⌨️ 快捷键说明

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