📄 pango-opentype-font-handling.html
字号:
</p></div><hr><div class="refsect2" lang="en"><a name="id2925880"></a><h3><a name="PangoOTTableType"></a>enum PangoOTTableType</h3><a class="indexterm" name="id2925893"></a><pre class="programlisting">typedef enum{ PANGO_OT_TABLE_GSUB, PANGO_OT_TABLE_GPOS} PangoOTTableType;</pre><p>The <span class="type">PangoOTTableType</span> enumeration values are used toidentify the various OpenType tables in the<code class="function">pango_ot_info_*</code> functions.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a name="PANGO-OT-TABLE-GSUB:CAPS"></a><code class="literal">PANGO_OT_TABLE_GSUB</code></span></td><td>The GSUB table.</td></tr><tr><td><span class="term"><a name="PANGO-OT-TABLE-GPOS:CAPS"></a><code class="literal">PANGO_OT_TABLE_GPOS</code></span></td><td>The GPOS table.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2925970"></a><h3><a name="PANGO-OT-ALL-GLYPHS:CAPS"></a>PANGO_OT_ALL_GLYPHS</h3><a class="indexterm" name="id2925983"></a><pre class="programlisting">#define PANGO_OT_ALL_GLYPHS ((guint)0xFFFF)</pre><p>This is used as the property bit in <a href="pango-OpenType-Font-Handling.html#pango-ot-ruleset-add-feature"><code class="function">pango_ot_ruleset_add_feature()</code></a> when afeature should be applied to all glyphs.</p></div><hr><div class="refsect2" lang="en"><a name="id2926012"></a><h3><a name="PANGO-OT-DEFAULT-LANGUAGE:CAPS"></a>PANGO_OT_DEFAULT_LANGUAGE</h3><a class="indexterm" name="id2926026"></a><pre class="programlisting">#define PANGO_OT_DEFAULT_LANGUAGE ((guint)0xFFFF)</pre><p>This is used as the language index in <a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-feature"><code class="function">pango_ot_info_find_feature()</code></a> when athe default language system of the script is desired.</p></div><hr><div class="refsect2" lang="en"><a name="id2926054"></a><h3><a name="pango-ot-info-get"></a>pango_ot_info_get ()</h3><a class="indexterm" name="id2926069"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a>* pango_ot_info_get (FT_Face face);</pre><p>Returns the <a href="pango-OpenType-Font-Handling.html#PangoOTInfo"><span class="type">PangoOTInfo</span></a> structure for the given FreeType 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>face</code></em> :</span></td><td> a <span class="type">FT_Face</span>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the <a href="pango-OpenType-Font-Handling.html#PangoOTInfo"><span class="type">PangoOTInfo</span></a> for <em class="parameter"><code>face</code></em>. This object will havethe same lifetime as <em class="parameter"><code>face</code></em>.</td></tr></tbody></table></div><p>Since 1.2</p></div><hr><div class="refsect2" lang="en"><a name="id2926165"></a><h3><a name="pango-ot-info-find-script"></a>pango_ot_info_find_script ()</h3><a class="indexterm" name="id2926179"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_ot_info_find_script (<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> script_tag, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> *script_index);</pre><p>Finds the index of a 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_tag</code></em> :</span></td><td> the tag of the script to find.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_index</code></em> :</span></td><td> location to store the index of the script, 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 script was found.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2926334"></a><h3><a name="pango-ot-info-find-language"></a>pango_ot_info_find_language ()</h3><a class="indexterm" name="id2926348"></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.</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="id2926559"></a><h3><a name="pango-ot-info-find-feature"></a>pango_ot_info_find_feature ()</h3><a class="indexterm" name="id2926573"></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.</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"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -