?? pango-fonts.html
字號:
<ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not previously set. This has the same life-time as the font description itself and should not be freed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3117420"></a><h3><a name="pango-font-description-set-style"></a>pango_font_description_set_style ()</h3><a class="indexterm" name="id3117434"></a><pre class="programlisting">void pango_font_description_set_style (<a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc, <a href="pango-Fonts.html#PangoStyle">PangoStyle</a> style);</pre><p>Sets the style field of a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. The<a href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> enumeration describes whether the font is slanted andthe manner in which it is slanted; it can be either<a href="pango-Fonts.html#PANGO-STYLE-NORMAL:CAPS"><span class="type">PANGO_STYLE_NORMAL</span></a>, <a href="pango-Fonts.html#PANGO-STYLE-ITALIC:CAPS"><span class="type">PANGO_STYLE_ITALIC</span></a>, or <a href="pango-Fonts.html#PANGO-STYLE-OBLIQUE:CAPS"><span class="type">PANGO_STYLE_OBLIQUE</span></a>.Most fonts will either have a italic style or an obliquestyle, but not both, and font matching in Pango willmatch italic specifications with oblique fonts and vice-versaif an exact match is not found.</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>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="id3117566"></a><h3><a name="pango-font-description-get-style"></a>pango_font_description_get_style ()</h3><a class="indexterm" name="id3117580"></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="id3117683"></a><h3><a name="pango-font-description-set-variant"></a>pango_font_description_set_variant ()</h3><a class="indexterm" name="id3117697"></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="id3117812"></a><h3><a name="pango-font-description-get-variant"></a>pango_font_description_get_variant ()</h3><a class="indexterm" name="id3117826"></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="id3117930"></a><h3><a name="pango-font-description-set-weight"></a>pango_font_description_set_weight ()</h3><a class="indexterm" name="id3117943"></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="id3118035"></a><h3><a name="pango-font-description-get-weight"></a>pango_font_description_get_weight ()</h3><a class="indexterm" name="id3118050"></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="id3118144"></a><h3><a name="pango-font-description-set-stretch"></a>pango_font_description_set_stretch ()</h3><a class="indexterm" name="id3118158"></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="id3118241"></a><h3><a name="pango-font-description-get-stretch"></a>pango_font_description_get_stretch ()</h3><a class="indexterm" name="id3118256"></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="emphas
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =