📄 pango-fonts.html
字号:
<col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>style</code></em> :</span></td><td> the style for the font description</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2787982"></a><h3><a name="pango-font-description-get-style"></a>pango_font_description_get_style ()</h3><a class="indexterm" name="id2787996"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoStyle">PangoStyle</a> pango_font_description_get_style (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Gets the style field of a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. See<a href="pango-Fonts.html#pango-font-description-set-style"><code class="function">pango_font_description_set_style()</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>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the style field for the font description. Use <a href="pango-Fonts.html#pango-font-description-get-set-fields"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if the field was explicitly set or not.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788099"></a><h3><a name="pango-font-description-set-variant"></a>pango_font_description_set_variant ()</h3><a class="indexterm" name="id2788113"></a><pre class="programlisting">void pango_font_description_set_variant (<a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc, <a href="pango-Fonts.html#PangoVariant">PangoVariant</a> variant);</pre><p>Sets the variant field of a font description. The <a href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a>can either be <a href="pango-Fonts.html#PANGO-VARIANT-NORMAL:CAPS"><code class="literal">PANGO_VARIANT_NORMAL</code></a> or <a href="pango-Fonts.html#PANGO-VARIANT-SMALL-CAPS:CAPS"><code class="literal">PANGO_VARIANT_SMALL_CAPS</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>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>variant</code></em> :</span></td><td> the variant type for the font description.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788229"></a><h3><a name="pango-font-description-get-variant"></a>pango_font_description_get_variant ()</h3><a class="indexterm" name="id2788243"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoVariant">PangoVariant</a> pango_font_description_get_variant (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Gets the variant field of a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. See<a href="pango-Fonts.html#pango-font-description-set-variant"><code class="function">pango_font_description_set_variant()</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>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the variant field for the font description. Use <a href="pango-Fonts.html#pango-font-description-get-set-fields"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if the field was explicitly set or not.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788347"></a><h3><a name="pango-font-description-set-weight"></a>pango_font_description_set_weight ()</h3><a class="indexterm" name="id2788361"></a><pre class="programlisting">void pango_font_description_set_weight (<a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc, <a href="pango-Fonts.html#PangoWeight">PangoWeight</a> weight);</pre><p>Sets the weight field of a font description. The weight fieldspecifies how bold or light the font should be. In additionto the values of the <a href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> enumeration, other intermediatenumeric values are possible.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>weight</code></em> :</span></td><td> the weight for the font description.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788453"></a><h3><a name="pango-font-description-get-weight"></a>pango_font_description_get_weight ()</h3><a class="indexterm" name="id2788468"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoWeight">PangoWeight</a> pango_font_description_get_weight (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Gets the weight field of a font description. See<a href="pango-Fonts.html#pango-font-description-set-weight"><code class="function">pango_font_description_set_weight()</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>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the weight field for the font description. Use <a href="pango-Fonts.html#pango-font-description-get-set-fields"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if the field was explicitly set or not.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788562"></a><h3><a name="pango-font-description-set-stretch"></a>pango_font_description_set_stretch ()</h3><a class="indexterm" name="id2788577"></a><pre class="programlisting">void pango_font_description_set_stretch (<a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc, <a href="pango-Fonts.html#PangoStretch">PangoStretch</a> stretch);</pre><p>Sets the stretch field of a font description. The stretch fieldspecifies how narrow or wide the font should be.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>stretch</code></em> :</span></td><td> the stretch for the font description</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788660"></a><h3><a name="pango-font-description-get-stretch"></a>pango_font_description_get_stretch ()</h3><a class="indexterm" name="id2788674"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoStretch">PangoStretch</a> pango_font_description_get_stretch (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Gets the stretch field of a font description.See <a href="pango-Fonts.html#pango-font-description-set-stretch"><code class="function">pango_font_description_set_stretch()</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>desc</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the stretch field for the font description. Use <a href="pango-Fonts.html#pango-font-description-get-set-fields"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if the field was explicitly set or not.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2788770"></a><h3><a name="pango-font-description-set-size"></a>pango_font_description_set_size ()</h3><a class="indexterm" name="id2788783"></a><pre class="programlisting">void pango_font_description_set_size (<a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc, <ahref="../glib/glib-Basic-Types.html#gint">gint</a> size);</pre><p>Sets the size field of a font description in fractional points. This is mutuallyexclusive with <a href="pango-Fonts.html#pango-font-description-set-absolute-size"><code class="function">pango_font_description_set_absolute_size()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><e
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -