📄 pango-opentype-font-handling.html
字号:
is 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> :</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> :</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>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2927804"></a><h3><a name="pango-ot-buffer-set-zero-width-marks"></a>pango_ot_buffer_set_zero_width_marks ()</h3><a class="indexterm" name="id2927820"></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> :</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> :</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>Since 1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2927919"></a><h3><a name="pango-ot-buffer-get-glyphs"></a>pango_ot_buffer_get_glyphs ()</h3><a class="indexterm" name="id2927936"></a><pre class="programlisting">void pango_ot_buffer_get_glyphs (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer, <a href="pango-OpenType-Font-Handling.html#PangoOTGlyph">PangoOTGlyph</a> **glyphs, int *n_glyphs);</pre><p>Gets the glyph array contained in a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a>. The glyphs areowned by the buffer and should not be freed, and are only valid as longas buffer is not modified.</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>glyphs</code></em> :</span></td><td> location to store the array of glyphs, 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>n_glyphs</code></em> :</span></td><td> location to store the number of glyphs, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2928072"></a><h3><a name="pango-ot-buffer-output"></a>pango_ot_buffer_output ()</h3><a class="indexterm" name="id2928088"></a><pre class="programlisting">void pango_ot_buffer_output (<a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer, <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs);</pre><p>Exports the glyphs in a <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer"><span class="type">PangoOTBuffer</span></a> into a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a>. This istypically used after the OpenType layout processing is over, to convert theresulting glyphs into a generic Pango glyph string.</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>glyphs</code></em> :</span></td><td> a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a></td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2928199"></a><h3><a name="pango-ot-ruleset-new"></a>pango_ot_ruleset_new ()</h3><a class="indexterm" name="id2928213"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTRuleset">PangoOTRuleset</a>* pango_ot_ruleset_new (<a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a> *info);</pre><p>Creates a new <a href="pango-OpenType-Font-Handling.html#PangoOTRuleset"><span class="type">PangoOTRuleset</span></a> for the given OpenType info.</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"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the newly allocated <a href="pango-OpenType-Font-Handling.html#PangoOTRuleset"><span class="type">PangoOTRuleset</span></a>, which should be freed with <ahref="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2928309"></a><h3><a name="pango-ot-ruleset-add-feature"></a>pango_ot_ruleset_add_feature ()</h3><a class="indexterm" name="id2928323"></a><pre class="programlisting">void pango_ot_ruleset_add_feature (<a href="pango-OpenType-Font-Handling.html#PangoOTRuleset">PangoOTRuleset</a> *ruleset, <a href="pango-OpenType-Font-Handling.html#PangoOTTableType">PangoOTTableType</a> table_type, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> feature_index, <ahref="../glib/glib-Basic-Types.html#gulong">gulong</a> property_bit);</pre><p>Adds a feature to the ruleset.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>ruleset</code></em> :</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTRuleset"><span class="type">PangoOTRuleset</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>table_type</code></em> :</span></td><td> the table type to add a feature to.</td></tr><tr><td><span class="term"><em class="parameter"><code>feature_index</code></em> :</span></td><td> the index of the feature to add.</td></tr><tr><td><span class="term"><em class="parameter"><code>property_bit</code></em> :</span></td><td> the property bit to use for this feature. Used to identify the glyphs that this feature should be applied to, or <a href="pango-OpenType-Font-Handling.html#PANGO-OT-ALL-GLYPHS:CAPS"><code class="literal">PANGO_OT_ALL_GLYPHS</code></a> if it should be applied to all glyphs.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2928462"></a><h3><a name="pango-ot-ruleset-substitute"></a>pango_ot_ruleset_substitute ()</h3><a class="indexterm" name="id2928477"></a><pre class="programlisting">void pango_ot_ruleset_substitute (<a href="pango-OpenType-Font-Handling.html#PangoOTRuleset">PangoOTRuleset</a> *ruleset, <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer);</pre><p>Performs the OpenType GSUB substitution on <em class="parameter"><code>buffer</code></em> using the featuresin <em class="parameter"><code>ruleset</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>ruleset</code></em> :</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTRuleset"><span class="type">PangoOTRuleset</span></a>.</td></tr><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="id2928580"></a><h3><a name="pango-ot-ruleset-position"></a>pango_ot_ruleset_position ()</h3><a class="indexterm" name="id2928597"></a><pre class="programlisting">void pango_ot_ruleset_position (<a href="pango-OpenType-Font-Handling.html#PangoOTRuleset">PangoOTRuleset</a> *ruleset, <a href="pango-OpenType-Font-Handling.html#PangoOTBuffer">PangoOTBuffer</a> *buffer);</pre><p>Performs the OpenType GPOS positioning on <em class="parameter"><code>buffer</code></em> using the featuresin <em class="parameter"><code>ruleset</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>ruleset</code></em> :</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTRuleset"><span class="type">PangoOTRuleset</span></a>.</td></tr><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></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -