📄 pango-text-processing.html
字号:
<span class="term"><em class="parameter"><code>font_map</code></em> :</span></td><td> the <a href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> to set.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757177"></a><h3><a name="pango-context-get-font-map"></a>pango_context_get_font_map ()</h3><a class="indexterm" name="id2757193"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>* pango_context_get_font_map (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Gets the <span class="type">PangoFontmap</span> used to look up fonts for this context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the font map for the <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>. This value is owned by Pango and should not be unreferenced.</td></tr></tbody></table></div><p>Since 1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2757285"></a><h3><a name="pango-context-get-font-description"></a>pango_context_get_font_description ()</h3><a class="indexterm" name="id2757299"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* pango_context_get_font_description (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Retrieve the default font description for the context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a pointer to the context's default font description. This value must not be modified or freed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757371"></a><h3><a name="pango-context-set-font-description"></a>pango_context_set_font_description ()</h3><a class="indexterm" name="id2757385"></a><pre class="programlisting">void pango_context_set_font_description (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context, const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Set the default font description for the context</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>desc</code></em> :</span></td><td> the new pango font description</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757467"></a><h3><a name="pango-context-get-language"></a>pango_context_get_language ()</h3><a class="indexterm" name="id2757480"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a>* pango_context_get_language (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Retrieves the global language tag for the context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the global language tag.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757549"></a><h3><a name="pango-context-set-language"></a>pango_context_set_language ()</h3><a class="indexterm" name="id2757563"></a><pre class="programlisting">void pango_context_set_language (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context, <a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a> *language);</pre><p>Sets the global language tag for the context. The default languagefor the locale of the running process can be found using<a href="pango-Miscellaneous-Utilities.html#pango-language-get-default"><code class="function">pango_language_get_default()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>language</code></em> :</span></td><td> the new language tag.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757656"></a><h3><a name="pango-context-get-base-dir"></a>pango_context_get_base_dir ()</h3><a class="indexterm" name="id2757670"></a><pre class="programlisting"><a href="pango-Text-Processing.html#PangoDirection">PangoDirection</a> pango_context_get_base_dir (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Retrieves the base direction for the context. See<a href="pango-Text-Processing.html#pango-context-set-base-dir"><code class="function">pango_context_set_base_dir()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the base direction for the context.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757751"></a><h3><a name="pango-context-set-base-dir"></a>pango_context_set_base_dir ()</h3><a class="indexterm" name="id2757764"></a><pre class="programlisting">void pango_context_set_base_dir (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context, <a href="pango-Text-Processing.html#PangoDirection">PangoDirection</a> direction);</pre><p>Sets the base direction for the context.</p><p>The base direction is used in applying the Unicode bidirectionalalgorithm; if the <em class="parameter"><code>direction</code></em> is <a href="pango-Text-Processing.html#PANGO-DIRECTION-LTR:CAPS"><code class="literal">PANGO_DIRECTION_LTR</code></a> or<a href="pango-Text-Processing.html#PANGO-DIRECTION-RTL:CAPS"><code class="literal">PANGO_DIRECTION_RTL</code></a>, then the value will be used as the paragraphdirection in the Unicode bidirectional algorithm. A value of<a href="pango-Text-Processing.html#PANGO-DIRECTION-WEAK-LTR:CAPS"><code class="literal">PANGO_DIRECTION_WEAK_LTR</code></a> or <a href="pango-Text-Processing.html#PANGO-DIRECTION-WEAK-RTL:CAPS"><code class="literal">PANGO_DIRECTION_WEAK_RTL</code></a> is used onlyfor paragraphs that do not contain any strong characters themselves.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>direction</code></em> :</span></td><td> the new base direction</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2757903"></a><h3><a name="pango-context-get-base-gravity"></a>pango_context_get_base_gravity ()</h3><a class="indexterm" name="id2757918"></a><pre class="programlisting"><a href="pango-Vertical-Text.html#PangoGravity">PangoGravity</a> pango_context_get_base_gravity (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Retrieves the base gravity for the context. See<a href="pango-Text-Processing.html#pango-context-set-base-gravity"><code class="function">pango_context_set_base_gravity()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the base gravity for the context.</td></tr></tbody></table></div><p>Since 1.16</p></div><hr><div class="refsect2" lang="en"><a name="id2758004"></a><h3><a name="pango-context-set-base-gravity"></a>pango_context_set_base_gravity ()</h3><a class="indexterm" name="id2758019"></a><pre class="programlisting">void pango_context_set_base_gravity (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context, <a href="pango-Vertical-Text.html#PangoGravity">PangoGravity</a> gravity);</pre><p>Sets the base gravity for the context.</p><p>The base gravity is used in laying vertical text out.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em> :</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>gravity</code></em> :</span></td><td> the new base gravity</td></tr></tbody></table></div><p>Since 1.16
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -