📄 pango-fonts.html
字号:
</tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2786116"></a><h3><a name="PANGO-TYPE-VARIANT:CAPS"></a>PANGO_TYPE_VARIANT</h3><a class="indexterm" name="id2786130"></a><pre class="programlisting">#define PANGO_TYPE_VARIANT (pango_variant_get_type())</pre><p>The <ahref="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2786162"></a><h3><a name="PangoStretch"></a>enum PangoStretch</h3><a class="indexterm" name="id2786174"></a><pre class="programlisting">typedef enum { PANGO_STRETCH_ULTRA_CONDENSED, PANGO_STRETCH_EXTRA_CONDENSED, PANGO_STRETCH_CONDENSED, PANGO_STRETCH_SEMI_CONDENSED, PANGO_STRETCH_NORMAL, PANGO_STRETCH_SEMI_EXPANDED, PANGO_STRETCH_EXPANDED, PANGO_STRETCH_EXTRA_EXPANDED, PANGO_STRETCH_ULTRA_EXPANDED} PangoStretch;</pre><p>An enumeration specifying the width of the font relative to other designswithin a family.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a name="PANGO-STRETCH-ULTRA-CONDENSED:CAPS"></a><code class="literal">PANGO_STRETCH_ULTRA_CONDENSED</code></span></td><td>ultra condensed width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-EXTRA-CONDENSED:CAPS"></a><code class="literal">PANGO_STRETCH_EXTRA_CONDENSED</code></span></td><td>extra condensed width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-CONDENSED:CAPS"></a><code class="literal">PANGO_STRETCH_CONDENSED</code></span></td><td>condensed width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-SEMI-CONDENSED:CAPS"></a><code class="literal">PANGO_STRETCH_SEMI_CONDENSED</code></span></td><td>semi condensed width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-NORMAL:CAPS"></a><code class="literal">PANGO_STRETCH_NORMAL</code></span></td><td>the normal width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-SEMI-EXPANDED:CAPS"></a><code class="literal">PANGO_STRETCH_SEMI_EXPANDED</code></span></td><td>semi expanded width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-EXPANDED:CAPS"></a><code class="literal">PANGO_STRETCH_EXPANDED</code></span></td><td>expanded width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-EXTRA-EXPANDED:CAPS"></a><code class="literal">PANGO_STRETCH_EXTRA_EXPANDED</code></span></td><td>extra expanded width</td></tr><tr><td><span class="term"><a name="PANGO-STRETCH-ULTRA-EXPANDED:CAPS"></a><code class="literal">PANGO_STRETCH_ULTRA_EXPANDED</code></span></td><td>ultra expanded width</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2786405"></a><h3><a name="PANGO-TYPE-STRETCH:CAPS"></a>PANGO_TYPE_STRETCH</h3><a class="indexterm" name="id2786418"></a><pre class="programlisting">#define PANGO_TYPE_STRETCH (pango_stretch_get_type())</pre><p>The <ahref="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2786450"></a><h3><a name="PangoFontMask"></a>enum PangoFontMask</h3><a class="indexterm" name="id2786463"></a><pre class="programlisting">typedef enum { PANGO_FONT_MASK_FAMILY = 1 << 0, PANGO_FONT_MASK_STYLE = 1 << 1, PANGO_FONT_MASK_VARIANT = 1 << 2, PANGO_FONT_MASK_WEIGHT = 1 << 3, PANGO_FONT_MASK_STRETCH = 1 << 4, PANGO_FONT_MASK_SIZE = 1 << 5, PANGO_FONT_MASK_GRAVITY = 1 << 6} PangoFontMask;</pre><p>The bits in a <a href="pango-Fonts.html#PangoFontMask"><span class="type">PangoFontMask</span></a> correspond to fields in a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> that have been set.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a name="PANGO-FONT-MASK-FAMILY:CAPS"></a><code class="literal">PANGO_FONT_MASK_FAMILY</code></span></td><td>the font family is specified.</td></tr><tr><td><span class="term"><a name="PANGO-FONT-MASK-STYLE:CAPS"></a><code class="literal">PANGO_FONT_MASK_STYLE</code></span></td><td>the font style is specified.</td></tr><tr><td><span class="term"><a name="PANGO-FONT-MASK-VARIANT:CAPS"></a><code class="literal">PANGO_FONT_MASK_VARIANT</code></span></td><td>the font variant is specified.</td></tr><tr><td><span class="term"><a name="PANGO-FONT-MASK-WEIGHT:CAPS"></a><code class="literal">PANGO_FONT_MASK_WEIGHT</code></span></td><td>the font weight is specified.</td></tr><tr><td><span class="term"><a name="PANGO-FONT-MASK-STRETCH:CAPS"></a><code class="literal">PANGO_FONT_MASK_STRETCH</code></span></td><td>the font stretch is specified.</td></tr><tr><td><span class="term"><a name="PANGO-FONT-MASK-SIZE:CAPS"></a><code class="literal">PANGO_FONT_MASK_SIZE</code></span></td><td>the font size is specified.</td></tr><tr><td><span class="term"><a name="PANGO-FONT-MASK-GRAVITY:CAPS"></a><code class="literal">PANGO_FONT_MASK_GRAVITY</code></span></td><td>the font gravity is specified (Since: 1.16.)</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2786672"></a><h3><a name="PANGO-TYPE-FONT-MASK:CAPS"></a>PANGO_TYPE_FONT_MASK</h3><a class="indexterm" name="id2786685"></a><pre class="programlisting">#define PANGO_TYPE_FONT_MASK (pango_font_mask_get_type())</pre><p>The <ahref="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a href="pango-Fonts.html#PangoFontMask"><span class="type">PangoFontMask</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2786717"></a><h3><a name="pango-font-description-new"></a>pango_font_description_new ()</h3><a class="indexterm" name="id2786730"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* pango_font_description_new (void);</pre><p>Creates a new font description structure with all fields unset.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the newly allocated <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which should be freed using <a href="pango-Fonts.html#pango-font-description-free"><code class="function">pango_font_description_free()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2786792"></a><h3><a name="pango-font-description-copy"></a>pango_font_description_copy ()</h3><a class="indexterm" name="id2786805"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* pango_font_description_copy (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Make a copy of a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></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 newly allocated <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which should be freed with <a href="pango-Fonts.html#pango-font-description-free"><code class="function">pango_font_description_free()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2786905"></a><h3><a name="pango-font-description-copy-static"></a>pango_font_description_copy_static ()</h3><a class="indexterm" name="id2786919"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* pango_font_description_copy_static (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Like <a href="pango-Fonts.html#pango-font-description-copy"><code class="function">pango_font_description_copy()</code></a>, but only a shallow copy is madeof the family name and other allocated fields. The result can onlybe used until <em class="parameter"><code>desc</code></em> is modified or freed. This is meant to be usedwhen the copy is only needed temporarily.</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -