?? pango-x-fonts-and-rendering.html
字號:
</tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2902969"></a><h3><a name="pango-x-get-unknown-glyph"></a>pango_x_get_unknown_glyph ()</h3><a class="indexterm" name="id2902985"></a><pre class="programlisting"><a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> pango_x_get_unknown_glyph (<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_x_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 unknown characters;you should generally use <a href="pango-Glyph-Storage.html#PANGO-GET-UNKNOWN-GLYPH:CAPS"><code class="function">PANGO_GET_UNKNOWN_GLYPH()</code></a> instead,since that may return a glyph that provides a better representationof a particular char. (E.g., by showing hex digits, or a glyphrepresentative of a certain Unicode range.)</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> 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="id2903087"></a><h3><a name="pango-x-has-glyph"></a>pango_x_has_glyph ()</h3><a class="indexterm" name="id2903103"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_x_has_glyph (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font, <a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> glyph);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_has_glyph</code> is deprecated and should not be used in newly-written code.</p></div><p>Checks if the given glyph is present in a X 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> which must be from the X backend.</td></tr><tr><td><span class="term"><em class="parameter"><code>glyph</code></em> :</span></td><td> the index of a glyph in the font. (Formed using the <a href="pango-X-Fonts-and-Rendering.html#PANGO-X-MAKE-GLYPH:CAPS"><span class="type">PANGO_X_MAKE_GLYPH</span></a> macro)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the glyph is present.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2903224"></a><h3><a name="pango-x-list-subfonts"></a>pango_x_list_subfonts ()</h3><a class="indexterm" name="id2903240"></a><pre class="programlisting">int pango_x_list_subfonts (<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);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_list_subfonts</code> is deprecated and should not be used in newly-written code.</p></div><p>Lists the subfonts of a given font. The result is ordered first by charset,and then within each charset, by the order of fonts in the font specification.</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>charsets</code></em> :</span></td><td> the charsets to list subfonts for.</td></tr><tr><td><span class="term"><em class="parameter"><code>n_charsets</code></em> :</span></td><td> the number of charsets in <em class="parameter"><code>charsets</code></em>.</td></tr><tr><td><span class="term"><em class="parameter"><code>subfont_ids</code></em> :</span></td><td> location to store a pointer to an array of subfont IDs for each found subfont; the result must be freed using <ahref="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>subfont_charsets</code></em> :</span></td><td> location to store a pointer to an array of subfont IDs for each found subfont; the result must be freed using <ahref="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> length of the arrays stored in <em class="parameter"><code>subfont_ids</code></em> and<em class="parameter"><code>subfont_charsets</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2903451"></a><h3><a name="pango-x-font-map-for-display"></a>pango_x_font_map_for_display ()</h3><a class="indexterm" name="id2903467"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>* pango_x_font_map_for_display (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_font_map_for_display</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns a <span class="type">PangoXFontMap</span> for <em class="parameter"><code>display</code></em>. Font maps are cached and shouldnot be freed. If the font map for a display is no longer needed, it canbe released with <a href="pango-X-Fonts-and-Rendering.html#pango-x-shutdown-display"><code class="function">pango_x_shutdown_display()</code></a>.</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 <span class="type">Display</span>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a <span class="type">PangoXFontMap</span> for <em class="parameter"><code>display</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2903590"></a><h3><a name="pango-x-shutdown-display"></a>pango_x_shutdown_display ()</h3><a class="indexterm" name="id2903606"></a><pre class="programlisting">void pango_x_shutdown_display (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_shutdown_display</code> is deprecated and should not be used in newly-written code.</p></div><p>Free cached resources for the given X display structure.</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 <span class="type">Display</span></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2903677"></a><h3><a name="pango-x-font-map-get-font-cache"></a>pango_x_font_map_get_font_cache ()</h3><a class="indexterm" name="id2903693"></a><pre class="programlisting"><a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache">PangoXFontCache</a>* pango_x_font_map_get_font_cache (<a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> *font_map);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_font_map_get_font_cache</code> is deprecated and should not be used in newly-written code.</p></div><p>Obtains the font cache associated with the given font map.</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_map</code></em> :</span></td><td> a <span class="type">PangoXFontMap</span>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the <a href="pango-X-Fonts-and-Rendering.html#PangoXFontCache"><span class="type">PangoXFontCache</span></a> of <em class="parameter"><code>font_map</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2903790"></a><h3><a name="pango-x-font-subfont-xlfd"></a>pango_x_font_subfont_xlfd ()</h3><a class="indexterm" name="id2903806"></a><pre class="programlisting">char* pango_x_font_subfont_xlfd (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font, <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont">PangoXSubfont</a> subfont_id);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_font_subfont_xlfd</code> is deprecated and should not be used in newly-written code.</p></div><p>Determines the X Logical Font Description for the specifiedsubfont.</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> which must be from the X backend.</td></tr><tr><td><span class="term"><em class="parameter"><code>subfont_id</code></em> :</span></td><td> the id of a subfont within the font.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> A newly-allocated string containing the XLFD for thesubfont. This string must be freed with <ahref="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2903922"></a><h3><a name="pango-x-find-first-subfont"></a>pango_x_find_first_subfont ()</h3><a class="indexterm" name="id2903938"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_x_find_first_subfont (<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);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_x_find_first_subfont</code> is deprecated and should not be used in newly-written code.</p></div><p>Looks for subfonts with the <em class="parameter"><code>charset</code></em> charset,in <em class="parameter"><code>font</code></em>, and puts the first one in *<em class="parameter"><code>rfont</code></em>.</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>charsets</code></em> :</span></td><td> An array of charsets.</td></tr><tr><td><span class="term"><em class="parameter"><code>n_charsets</code></em> :</span></td><td> The number of charsets in <em class="parameter"><code>charsets</code></em>.</td></tr><tr><td><span class="term"><em class="parameter"><code>rfont</code></em> :</span></td><td> A pointer to a <a href="pango-X-Fonts-and-Rendering.html#PangoXSubfont"><span class="type">PangoXSubfont</span></a>.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -