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

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

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</p></div><hr><div class="refsect2" lang="en"><a name="id2885620"></a><h3><a name="pango-xft-set-default-substitute"></a>pango_xft_set_default_substitute ()</h3><a class="indexterm" name="id2885636"></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,                                             <ahref="../glib/glib-Basic-Types.html#gpointer">gpointer</a> data,                                             <ahref="../glib/glib-Datasets.html#GDestroyNotify">GDestroyNotify</a> notify);</pre><p>Sets a function that will be called to do final configurationsubstitution on a <span class="type">FcPattern</span> before it is used to loadthe font. This function can be used to do things like sethinting 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>&#160;:</span></td><td> an X Display</td></tr><tr><td><span class="term"><em class="parameter"><code>screen</code></em>&#160;:</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>&#160;:</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>&#160;:</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>&#160;:</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="id2885817"></a><h3><a name="PangoXftSubstituteFunc"></a>PangoXftSubstituteFunc ()</h3><a class="indexterm" name="id2885830"></a><pre class="programlisting">void        (*PangoXftSubstituteFunc)       (FcPattern *pattern,                                             <ahref="../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>&#160;:</span></td><td>the FcPattern to tweak.</td></tr><tr><td><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td><td>user data.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2885899"></a><h3><a name="pango-xft-substitute-changed"></a>pango_xft_substitute_changed ()</h3><a class="indexterm" name="id2885915"></a><pre class="programlisting">void        pango_xft_substitute_changed    (Display *display,                                             int screen);</pre><p>Call this function any time the results of thedefault 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 substitution function will return differentresults 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>&#160;:</span></td><td> an X Display</td></tr><tr><td><span class="term"><em class="parameter"><code>screen</code></em>&#160;:</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="id2886012"></a><h3><a name="pango-xft-shutdown-display"></a>pango_xft_shutdown_display ()</h3><a class="indexterm" name="id2886028"></a><pre class="programlisting">void        pango_xft_shutdown_display      (Display *display,                                             int screen);</pre><p>Release any resources that have been cached for thecombination of <em class="parameter"><code>display</code></em> and <em class="parameter"><code>screen</code></em>. Note that when theX 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>&#160;:</span></td><td> an X display</td></tr><tr><td><span class="term"><em class="parameter"><code>screen</code></em>&#160;:</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="id2886124"></a><h3><a name="pango-xft-font-get-font"></a>pango_xft_font_get_font ()</h3><a class="indexterm" name="id2886137"></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>&#160;:</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>&#160;:</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="id2886211"></a><h3><a name="pango-xft-font-get-display"></a>pango_xft_font_get_display ()</h3><a class="indexterm" name="id2886225"></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>&#160;:</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>&#160;:</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="id2886299"></a><h3><a name="pango-xft-font-has-char"></a>pango_xft_font_has_char ()</h3><a class="indexterm" name="id2886315"></a><a class="indexterm" name="id2886323"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a>    pango_xft_font_has_char         (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                             <ahref="../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>&#160;:</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>&#160;:</span></td><td> Unicode codepoint to look up</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> <ahref="../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="id2886472"></a><h3><a name="pango-xft-font-lock-face"></a>pango_xft_font_lock_face ()</h3><a class="indexterm" name="id2886488"></a><a class="indexterm" name="id2886496"></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 <span class="type">FT_Face</span> 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>&#160;:</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>&#160;:</span></td><td> the FreeType <span class="type">FT_Face</span> associated with <em class="parameter"><code>font</code></em>.</td></tr></tbody></table></div><p>Since  1.2

⌨️ 快捷键说明

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