📄 opentype.xml
字号:
</variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-destroy" role="function" condition="since:1.4"/>pango_ot_buffer_destroy ()</title><indexterm role="1.4"><primary>pango_ot_buffer_destroy</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_destroy (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer);</programlisting><para>Destroys a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link> and free all associated memory.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-clear" role="function" condition="since:1.4"/>pango_ot_buffer_clear ()</title><indexterm role="1.4"><primary>pango_ot_buffer_clear</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_clear (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer);</programlisting><para>Empties a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link>, make it ready to add glyphs to.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-add-glyph" role="function" condition="since:1.4"/>pango_ot_buffer_add_glyph ()</title><indexterm role="1.4"><primary>pango_ot_buffer_add_glyph</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_add_glyph (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer, <link linkend="guint">guint</link> glyph, <link linkend="guint">guint</link> properties, <link linkend="guint">guint</link> cluster);</programlisting><para>Appends a glyph to a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link>, with <parameter>properties</parameter> identifying whichfeatures should be applied on this glyph. See <link linkend="pango-ruleset-add-feature"><function>pango_ruleset_add_feature()</function></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>glyph</parameter> :</term><listitem><simpara> the glyph index to add, like a <link linkend="PangoGlyph"><type>PangoGlyph</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>properties</parameter> :</term><listitem><simpara> the glyph properties</simpara></listitem></varlistentry><varlistentry><term><parameter>cluster</parameter> :</term><listitem><simpara> the cluster that this glyph belongs to</simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-set-rtl" role="function" condition="since:1.4"/>pango_ot_buffer_set_rtl ()</title><indexterm role="1.4"><primary>pango_ot_buffer_set_rtl</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_set_rtl (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer, <link linkend="gboolean">gboolean</link> rtl);</programlisting><para>Sets whether glyphs will be rendered right-to-left. This settingis needed for proper horizontal positioning of right-to-left scripts.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>rtl</parameter> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> for right-to-left text</simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-set-zero-width-marks" role="function" condition="since:1.6"/>pango_ot_buffer_set_zero_width_marks ()</title><indexterm role="1.6"><primary>pango_ot_buffer_set_zero_width_marks</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_set_zero_width_marks (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer, <link linkend="gboolean">gboolean</link> zero_width_marks);</programlisting><para>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.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>zero_width_marks</parameter> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if characters with a mark class should be forced to zero width.</simpara></listitem></varlistentry></variablelist><para>Since 1.6</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-get-glyphs" role="function" condition="since:1.4"/>pango_ot_buffer_get_glyphs ()</title><indexterm role="1.4"><primary>pango_ot_buffer_get_glyphs</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_get_glyphs (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer, <link linkend="PangoOTGlyph">PangoOTGlyph</link> **glyphs, <link linkend="int">int</link> *n_glyphs);</programlisting><para>Gets the glyph array contained in a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link>. The glyphs areowned by the buffer and should not be freed, and are only valid as longas buffer is not modified.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> location to store the array of glyphs, or <link linkend="NULL:CAPS"><literal>NULL</literal></link></simpara></listitem></varlistentry><varlistentry><term><parameter>n_glyphs</parameter> :</term><listitem><simpara> location to store the number of glyphs, or <link linkend="NULL:CAPS"><literal>NULL</literal></link></simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-buffer-output" role="function" condition="since:1.4"/>pango_ot_buffer_output ()</title><indexterm role="1.4"><primary>pango_ot_buffer_output</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_buffer_output (<link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer, <link linkend="PangoGlyphString">PangoGlyphString</link> *glyphs);</programlisting><para>Exports the glyphs in a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link> into a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link>. This istypically used after the OpenType layout processing is over, to convert theresulting glyphs into a generic Pango glyph string.</para><para></para><variablelist role="params"><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-ruleset-new" role="function"/>pango_ot_ruleset_new ()</title><indexterm><primary>pango_ot_ruleset_new</primary></indexterm><programlisting><link linkend="PangoOTRuleset">PangoOTRuleset</link>* pango_ot_ruleset_new (<link linkend="PangoOTInfo">PangoOTInfo</link> *info);</programlisting><para>Creates a new <link linkend="PangoOTRuleset"><type>PangoOTRuleset</type></link> for the given OpenType info.</para><para></para><variablelist role="params"><varlistentry><term><parameter>info</parameter> :</term><listitem><simpara> a <link linkend="PangoOTInfo"><type>PangoOTInfo</type></link>.</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the newly allocated <link linkend="PangoOTRuleset"><type>PangoOTRuleset</type></link>, which should be freed with <link linkend="g-object-unref"><function>g_object_unref()</function></link>.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-ot-ruleset-add-feature" role="function"/>pango_ot_ruleset_add_feature ()</title><indexterm><primary>pango_ot_ruleset_add_feature</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_ruleset_add_feature (<link linkend="PangoOTRuleset">PangoOTRuleset</link> *ruleset, <link linkend="PangoOTTableType">PangoOTTableType</link> table_type, <link linkend="guint">guint</link> feature_index, <link linkend="gulong">gulong</link> property_bit);</programlisting><para>Adds a feature to the ruleset.</para><para></para><variablelist role="params"><varlistentry><term><parameter>ruleset</parameter> :</term><listitem><simpara> a <link linkend="PangoOTRuleset"><type>PangoOTRuleset</type></link>.</simpara></listitem></varlistentry><varlistentry><term><parameter>table_type</parameter> :</term><listitem><simpara> the table type to add a feature to.</simpara></listitem></varlistentry><varlistentry><term><parameter>feature_index</parameter> :</term><listitem><simpara> the index of the feature to add.</simpara></listitem></varlistentry><varlistentry><term><parameter>property_bit</parameter> :</term><listitem><simpara> the property bit to use for this feature. Used to identify the glyphs that this feature should be applied to, or <link linkend="PANGO-OT-ALL-GLYPHS:CAPS"><literal>PANGO_OT_ALL_GLYPHS</literal></link> if it should be applied to all glyphs.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-ot-ruleset-substitute" role="function" condition="since:1.4"/>pango_ot_ruleset_substitute ()</title><indexterm role="1.4"><primary>pango_ot_ruleset_substitute</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_ruleset_substitute (<link linkend="PangoOTRuleset">PangoOTRuleset</link> *ruleset, <link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer);</programlisting><para>Performs the OpenType GSUB substitution on <parameter>buffer</parameter> using the featuresin <parameter>ruleset</parameter></para><para></para><variablelist role="params"><varlistentry><term><parameter>ruleset</parameter> :</term><listitem><simpara> a <link linkend="PangoOTRuleset"><type>PangoOTRuleset</type></link>.</simpara></listitem></varlistentry><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link>.</simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2><refsect2><title><anchor id="pango-ot-ruleset-position" role="function" condition="since:1.4"/>pango_ot_ruleset_position ()</title><indexterm role="1.4"><primary>pango_ot_ruleset_position</primary></indexterm><programlisting><link linkend="void">void</link> pango_ot_ruleset_position (<link linkend="PangoOTRuleset">PangoOTRuleset</link> *ruleset, <link linkend="PangoOTBuffer">PangoOTBuffer</link> *buffer);</programlisting><para>Performs the OpenType GPOS positioning on <parameter>buffer</parameter> using the featuresin <parameter>ruleset</parameter></para><para></para><variablelist role="params"><varlistentry><term><parameter>ruleset</parameter> :</term><listitem><simpara> a <link linkend="PangoOTRuleset"><type>PangoOTRuleset</type></link>.</simpara></listitem></varlistentry><varlistentry><term><parameter>buffer</parameter> :</term><listitem><simpara> a <link linkend="PangoOTBuffer"><type>PangoOTBuffer</type></link>.</simpara></listitem></varlistentry></variablelist><para>Since 1.4</para></refsect2></refsect1></refentry>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -