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

📄 pango-opentype-font-handling.html

📁 linux
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a name="id3264077"></a><h3><a name="pango-ot-info-list-features"></a>pango_ot_info_list_features ()</h3><a class="indexterm" name="id3264091"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTTag">PangoOTTag</a>*         pango_ot_info_list_features         (<a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a> *info,                                                         <a href="pango-OpenType-Font-Handling.html#PangoOTTableType">PangoOTTableType</a> table_type,                                                         <a href="pango-OpenType-Font-Handling.html#PangoOTTag">PangoOTTag</a> tag,                                                         <ahref="../glib/glib-Basic-Types.html#guint">guint</a> script_index,                                                         <ahref="../glib/glib-Basic-Types.html#guint">guint</a> language_index);</pre><p>Obtains the list of features for the given language of the given script.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTInfo"><span class="type">PangoOTInfo</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>table_type</code></em>&#160;:</span></td><td> the table type to obtain information about.</td></tr><tr><td><span class="term"><em class="parameter"><code>tag</code></em>&#160;:</span></td><td> unused parameter.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_index</code></em>&#160;:</span></td><td> the index of the script to obtain information about.</td></tr><tr><td><span class="term"><em class="parameter"><code>language_index</code></em>&#160;:</span></td><td> the index of the language to list features for, or    <a href="pango-OpenType-Font-Handling.html#PANGO-OT-DEFAULT-LANGUAGE:CAPS"><code class="literal">PANGO_OT_DEFAULT_LANGUAGE</code></a>, to list features for the default    language of the script.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> a newly-allocated zero-terminated array containing the tags of theavailable features.  Should be freed using <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="id3264274"></a><h3><a name="pango-ot-buffer-new"></a>pango_ot_buffer_new ()</h3><a class="indexterm" name="id3264289"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a>*      pango_ot_buffer_new                 (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font);</pre><p>Creates a new <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a> for the given OpenType 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="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a>, which should              be freed with <a href="pango-OpenType-Font-Handling.html#pango-ot-buffer-destroy"><code class="function">pango_ot_buffer_destroy()</code></a>.</td></tr></tbody></table></div><p class="since">Since  1.4</p></div><hr><div class="refsect2" lang="en"><a name="id3264392"></a><h3><a name="pango-ot-buffer-destroy"></a>pango_ot_buffer_destroy ()</h3><a class="indexterm" name="id3264408"></a><pre class="programlisting">void                pango_ot_buffer_destroy             (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer);</pre><p>Destroys a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a> and free all associated memory.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr></tbody></table></div><p class="since">Since  1.4</p></div><hr><div class="refsect2" lang="en"><a name="id3264481"></a><h3><a name="pango-ot-buffer-clear"></a>pango_ot_buffer_clear ()</h3><a class="indexterm" name="id3264496"></a><pre class="programlisting">void                pango_ot_buffer_clear               (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer);</pre><p>Empties a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a>, make it ready to add glyphs to.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr></tbody></table></div><p class="since">Since  1.4</p></div><hr><div class="refsect2" lang="en"><a name="id3264570"></a><h3><a name="pango-ot-buffer-add-glyph"></a>pango_ot_buffer_add_glyph ()</h3><a class="indexterm" name="id3264586"></a><pre class="programlisting">void                pango_ot_buffer_add_glyph           (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer,                                                         <ahref="../glib/glib-Basic-Types.html#guint">guint</a> glyph,                                                         <ahref="../glib/glib-Basic-Types.html#guint">guint</a> properties,                                                         <ahref="../glib/glib-Basic-Types.html#guint">guint</a> cluster);</pre><p>Appends a glyph to a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a>, with <em class="parameter"><code>properties</code></em> identifying whichfeatures should be applied on this glyph.  See <code class="function">pango_ruleset_add_feature()</code>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>glyph</code></em>&#160;:</span></td><td> the glyph index to add, like a <a href="pango-Glyph-Storage.html#PangoGlyph"><span class="type">PangoGlyph</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>properties</code></em>&#160;:</span></td><td> the glyph properties</td></tr><tr><td><span class="term"><em class="parameter"><code>cluster</code></em>&#160;:</span></td><td> the cluster that this glyph belongs to</td></tr></tbody></table></div><p class="since">Since  1.4</p></div><hr><div class="refsect2" lang="en"><a name="id3264751"></a><h3><a name="pango-ot-buffer-set-rtl"></a>pango_ot_buffer_set_rtl ()</h3><a class="indexterm" name="id3264767"></a><pre class="programlisting">void                pango_ot_buffer_set_rtl             (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer,                                                         <ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> rtl);</pre><p>Sets whether glyphs will be rendered right-to-left.  This settingis needed for proper horizontal positioning of right-to-left scripts.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>rtl</code></em>&#160;:</span></td><td> <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for right-to-left text</td></tr></tbody></table></div><p class="since">Since  1.4</p></div><hr><div class="refsect2" lang="en"><a name="id3264866"></a><h3><a name="pango-ot-buffer-set-zero-width-marks"></a>pango_ot_buffer_set_zero_width_marks ()</h3><a class="indexterm" name="id3264882"></a><pre class="programlisting">void                pango_ot_buffer_set_zero_width_marks                                                        (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer,                                                         <ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> zero_width_marks);</pre><p>Sets whether characters with a mark class should be forced to zero width.This setting is needed for proper positioning of Arabic accents,but will produce incorrect results with standard OpenType Indicfonts.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>zero_width_marks</code></em>&#160;:</span></td><td> <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if characters with a mark class should be forced to zero width.</td></tr></tbody></table></div><p class="since">Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id3264984"></a><h3><a name="pango-ot-buffer-get-glyphs"></a>pango_ot_buffer_get_glyphs ()</h3><a class="indexterm" name="id3265001"></a><pre class="programlisting">void                pango_ot_buffer_get_glyphs          (const <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer,                                           

⌨️ 快捷键说明

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