⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.xml

📁 linux
💻 XML
📖 第 1 页 / 共 5 页
字号:
</variablelist><para role="since">Since  1.6</para></refsect2><refsect2><title><anchor id="pango-context-get-font-description" role="function"/>pango_context_get_font_description ()</title><indexterm><primary>pango_context_get_font_description</primary></indexterm><programlisting><link linkend="PangoFontDescription">PangoFontDescription</link>* pango_context_get_font_description                                                        (<link linkend="PangoContext">PangoContext</link> *context);</programlisting><para>Retrieve the default font description for the context.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a pointer to the context's default font description.              This value must not be modified or freed.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-context-set-font-description" role="function"/>pango_context_set_font_description ()</title><indexterm><primary>pango_context_set_font_description</primary></indexterm><programlisting><link linkend="void">void</link>                pango_context_set_font_description  (<link linkend="PangoContext">PangoContext</link> *context,                                                         const <link linkend="PangoFontDescription">PangoFontDescription</link> *desc);</programlisting><para>Set the default font description for the context</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>desc</parameter>&nbsp;:</term><listitem><simpara> the new pango font description</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-context-get-language" role="function"/>pango_context_get_language ()</title><indexterm><primary>pango_context_get_language</primary></indexterm><programlisting><link linkend="PangoLanguage">PangoLanguage</link>*      pango_context_get_language          (<link linkend="PangoContext">PangoContext</link> *context);</programlisting><para>Retrieves the global language tag for the context.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the global language tag.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-context-set-language" role="function"/>pango_context_set_language ()</title><indexterm><primary>pango_context_set_language</primary></indexterm><programlisting><link linkend="void">void</link>                pango_context_set_language          (<link linkend="PangoContext">PangoContext</link> *context,                                                         <link linkend="PangoLanguage">PangoLanguage</link> *language);</programlisting><para>Sets the global language tag for the context.  The default languagefor the locale of the running process can be found using<link linkend="pango-language-get-default"><function>pango_language_get_default()</function></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>language</parameter>&nbsp;:</term><listitem><simpara> the new language tag.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-context-get-base-dir" role="function"/>pango_context_get_base_dir ()</title><indexterm><primary>pango_context_get_base_dir</primary></indexterm><programlisting><link linkend="PangoDirection">PangoDirection</link>      pango_context_get_base_dir          (<link linkend="PangoContext">PangoContext</link> *context);</programlisting><para>Retrieves the base direction for the context. See<link linkend="pango-context-set-base-dir"><function>pango_context_set_base_dir()</function></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the base direction for the context.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-context-set-base-dir" role="function"/>pango_context_set_base_dir ()</title><indexterm><primary>pango_context_set_base_dir</primary></indexterm><programlisting><link linkend="void">void</link>                pango_context_set_base_dir          (<link linkend="PangoContext">PangoContext</link> *context,                                                         <link linkend="PangoDirection">PangoDirection</link> direction);</programlisting><para>Sets the base direction for the context.</para><para>The base direction is used in applying the Unicode bidirectionalalgorithm; if the <parameter>direction</parameter> is <link linkend="PANGO-DIRECTION-LTR:CAPS"><literal>PANGO_DIRECTION_LTR</literal></link> or<link linkend="PANGO-DIRECTION-RTL:CAPS"><literal>PANGO_DIRECTION_RTL</literal></link>, then the value will be used as the paragraphdirection in the Unicode bidirectional algorithm.  A value of<link linkend="PANGO-DIRECTION-WEAK-LTR:CAPS"><literal>PANGO_DIRECTION_WEAK_LTR</literal></link> or <link linkend="PANGO-DIRECTION-WEAK-RTL:CAPS"><literal>PANGO_DIRECTION_WEAK_RTL</literal></link> is used onlyfor paragraphs that do not contain any strong characters themselves.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>direction</parameter>&nbsp;:</term><listitem><simpara> the new base direction</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-context-get-base-gravity" role="function" condition="since:1.16"/>pango_context_get_base_gravity ()</title><indexterm role="1.16"><primary>pango_context_get_base_gravity</primary></indexterm><programlisting><link linkend="PangoGravity">PangoGravity</link>        pango_context_get_base_gravity      (<link linkend="PangoContext">PangoContext</link> *context);</programlisting><para>Retrieves the base gravity for the context. See<link linkend="pango-context-set-base-gravity"><function>pango_context_set_base_gravity()</function></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the base gravity for the context.</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.16</para></refsect2><refsect2><title><anchor id="pango-context-set-base-gravity" role="function" condition="since:1.16"/>pango_context_set_base_gravity ()</title><indexterm role="1.16"><primary>pango_context_set_base_gravity</primary></indexterm><programlisting><link linkend="void">void</link>                pango_context_set_base_gravity      (<link linkend="PangoContext">PangoContext</link> *context,                                                         <link linkend="PangoGravity">PangoGravity</link> gravity);</programlisting><para>Sets the base gravity for the context.</para><para>The base gravity is used in laying vertical text out.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>gravity</parameter>&nbsp;:</term><listitem><simpara> the new base gravity</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.16</para></refsect2><refsect2><title><anchor id="pango-context-get-gravity" role="function" condition="since:1.16"/>pango_context_get_gravity ()</title><indexterm role="1.16"><primary>pango_context_get_gravity</primary></indexterm><programlisting><link linkend="PangoGravity">PangoGravity</link>        pango_context_get_gravity           (<link linkend="PangoContext">PangoContext</link> *context);</programlisting><para>Retrieves the gravity for the context. This is similar to<link linkend="pango-context-get-base-gravity"><function>pango_context_get_base_gravity()</function></link>, except for when the base gravityis <link linkend="PANGO-GRAVITY-AUTO:CAPS"><literal>PANGO_GRAVITY_AUTO</literal></link> for which <link linkend="pango-gravity-get-for-matrix"><function>pango_gravity_get_for_matrix()</function></link> is usedto return the gravity from the current context matrix.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the resolved gravity for the context.</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.16</para></refsect2><refsect2><title><anchor id="pango-context-get-gravity-hint" role="function" condition="since:1.16"/>pango_context_get_gravity_hint ()</title><indexterm role="1.16"><primary>pango_context_get_gravity_hint</primary></indexterm><programlisting><link linkend="PangoGravityHint">PangoGravityHint</link>    pango_context_get_gravity_hint      (<link linkend="PangoContext">PangoContext</link> *context);</programlisting><para>Retrieves the gravity hint for the context. See<link linkend="pango-context-set-gravity-hint"><function>pango_context_set_gravity_hint()</function></link> for details.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the gravity hint for the context.</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.16</para></refsect2><refsect2><title><anchor id="pango-context-set-gravity-hint" role="function" condition="since:1.16"/>pango_context_set_gravity_hint ()</title><indexterm role="1.16"><primary>pango_context_set_gravity_hint</primary></indexterm><programlisting><link linkend="void">void</link>                pango_context_set_gravity_hint      (<link linkend="PangoContext">PangoContext</link> *context,                                                         <link linkend="PangoGravityHint">PangoGravityHint</link> hint);</programlisting><para>Sets the gravity hint for the context.</para><para>The gravity hint is used in laying vertical text out, and is only relevantif gravity of the context as returned by <link linkend="pango-context-get-gravity"><function>pango_context_get_gravity()</function></link>is set <link linkend="PANGO-GRAVITY-EAST:CAPS"><literal>PANGO_GRAVITY_EAST</literal></link> or <link linkend="PANGO-GRAVITY-WEST:CAPS"><literal>PANGO_GRAVITY_WEST</literal></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>context</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>hint</parameter>&nbsp;:</term><listitem><simpara> the new gravity hint</simpara></listitem></varlistentry>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -