📄 pango-opentype-font-handling.html
字号:
href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</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 script was found.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3263278"></a><h3><a name="pango-ot-info-find-language"></a>pango_ot_info_find_language ()</h3><a class="indexterm" name="id3263292"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_ot_info_find_language (<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, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> *language_index, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> *required_feature_index);</pre><p>Finds the index of a language and its required feature index.If the language is not found, sets <em class="parameter"><code>language_index</code></em> toPANGO_OT_DEFAULT_LANGUAGE and the required feature of the default languagesystem is returned in required_feature_index. For best compatibility withsome fonts, also searches the language system tag 'dflt' before fallingback to the default language system, but that is transparent to the user.The user can simply ignore the return value of this function toautomatically fall back to the default language system.</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 whose languages are searched.</td></tr><tr><td><span class="term"><em class="parameter"><code>language_tag</code></em> :</span></td><td> the tag of the language to find.</td></tr><tr><td><span class="term"><em class="parameter"><code>language_index</code></em> :</span></td><td> location to store the index of the language, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>required_feature_index</code></em> :</span></td><td> location to store the required feature index of the language, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</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 language was found.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3263518"></a><h3><a name="pango-ot-info-find-feature"></a>pango_ot_info_find_feature ()</h3><a class="indexterm" name="id3263532"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_ot_info_find_feature (<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> feature_tag, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> script_index, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> language_index, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> *feature_index);</pre><p>Finds the index of a feature. If the feature is not found, sets<em class="parameter"><code>feature_index</code></em> to PANGO_OT_NO_FEATURE, which is safe to pass to<a href="pango-OpenType-Font-Handling.html#pango-ot-ruleset-add-feature"><code class="function">pango_ot_ruleset_add_feature()</code></a> and similar functions.</p><p>In the future, this may set <em class="parameter"><code>feature_index</code></em> to an special value that if usedin <a href="pango-OpenType-Font-Handling.html#pango-ot-ruleset-add-feature"><code class="function">pango_ot_ruleset_add_feature()</code></a> will ask Pango to synthesize therequested feature based on Unicode properties and data. However, thisfunction will still return <ahref="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> in those cases. So, users may want toignore the return value of this function in certain cases.</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>feature_tag</code></em> :</span></td><td> the tag of the feature to find.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_index</code></em> :</span></td><td> the index of the script.</td></tr><tr><td><span class="term"><em class="parameter"><code>language_index</code></em> :</span></td><td> the index of the language whose features are searched, or <a href="pango-OpenType-Font-Handling.html#PANGO-OT-DEFAULT-LANGUAGE:CAPS"><code class="literal">PANGO_OT_DEFAULT_LANGUAGE</code></a> to use the default language of the script.</td></tr><tr><td><span class="term"><em class="parameter"><code>feature_index</code></em> :</span></td><td> location to store the index of the feature, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</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 feature was found.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3263800"></a><h3><a name="pango-ot-info-list-scripts"></a>pango_ot_info_list_scripts ()</h3><a class="indexterm" name="id3263813"></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 zero-terminated array containing the tags of the available scripts. 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="id3263915"></a><h3><a name="pango-ot-info-list-languages"></a>pango_ot_info_list_languages ()</h3><a class="indexterm" name="id3263929"></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 zero-terminated array containing the tags of the available languages. 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">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -