📄 pango-opentype-font-handling.html
字号:
><code class="literal">TRUE</code></a> if the feature was found.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2926785"></a><h3><a name="pango-ot-info-list-scripts"></a>pango_ot_info_list_scripts ()</h3><a class="indexterm" name="id2926798"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTTag">PangoOTTag</a>* pango_ot_info_list_scripts (<a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a> *info, <a href="pango-OpenType-Font-Handling.html#PangoOTTableType">PangoOTTableType</a> table_type);</pre><p>Obtains the list of available 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>info</code></em> :</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> :</span></td><td> the table type to obtain information about.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a newly-allocated array containing the tags of the available scripts.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2926889"></a><h3><a name="pango-ot-info-list-languages"></a>pango_ot_info_list_languages ()</h3><a class="indexterm" name="id2926903"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTTag">PangoOTTag</a>* pango_ot_info_list_languages (<a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a> *info, <a href="pango-OpenType-Font-Handling.html#PangoOTTableType">PangoOTTableType</a> table_type, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> script_index, <a href="pango-OpenType-Font-Handling.html#PangoOTTag">PangoOTTag</a> language_tag);</pre><p>Obtains the list of available languages for a 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> :</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> :</span></td><td> the table type to obtain information about.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_index</code></em> :</span></td><td> the index of the script to list languages for.</td></tr><tr><td><span class="term"><em class="parameter"><code>language_tag</code></em> :</span></td><td> unused parameter.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a newly-allocated array containing the tags of the available languages.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2927040"></a><h3><a name="pango-ot-info-list-features"></a>pango_ot_info_list_features ()</h3><a class="indexterm" name="id2927054"></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> :</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> :</span></td><td> the table type to obtain information about.</td></tr><tr><td><span class="term"><em class="parameter"><code>tag</code></em> :</span></td><td> unused parameter.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_index</code></em> :</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> :</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> :</span></td><td> a newly-allocated array containing the tags of theavailable features.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2927225"></a><h3><a name="pango-ot-buffer-new"></a>pango_ot_buffer_new ()</h3><a class="indexterm" name="id2927240"></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> :</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> :</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>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2927340"></a><h3><a name="pango-ot-buffer-destroy"></a>pango_ot_buffer_destroy ()</h3><a class="indexterm" name="id2927356"></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> :</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2927427"></a><h3><a name="pango-ot-buffer-clear"></a>pango_ot_buffer_clear ()</h3><a class="indexterm" name="id2927442"></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> :</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a></td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2927514"></a><h3><a name="pango-ot-buffer-add-glyph"></a>pango_ot_buffer_add_glyph ()</h3><a class="indexterm" name="id2927530"></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> :</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> :</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> :</span></td><td> the glyph properties</td></tr><tr><td><span class="term"><em class="parameter"><code>cluster</code></em> :</span></td><td> the cluster that this glyph belongs to</td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2927692"></a><h3><a name="pango-ot-buffer-set-rtl"></a>pango_ot_buffer_set_rtl ()</h3><a class="indexterm" name="id2927707"></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 setting
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -