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

📄 pango-text-attributes.html

📁 linux
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<p>Create a new language tag attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>language</code></em>&#160;:</span></td><td> language tag</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3144642"></a><h3><a name="pango-attr-family-new"></a>pango_attr_family_new ()</h3><a class="indexterm" name="id3144655"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_family_new               (const char *family);</pre><p>Create a new font family attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>family</code></em>&#160;:</span></td><td> the family or comma separated list of families</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3144737"></a><h3><a name="pango-attr-style-new"></a>pango_attr_style_new ()</h3><a class="indexterm" name="id3144750"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_style_new                (<a href="pango-Fonts.html#PangoStyle">PangoStyle</a> style);</pre><p>Create a new font slant style attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>style</code></em>&#160;:</span></td><td> the slant style</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3144831"></a><h3><a name="pango-attr-variant-new"></a>pango_attr_variant_new ()</h3><a class="indexterm" name="id3144845"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_variant_new              (<a href="pango-Fonts.html#PangoVariant">PangoVariant</a> variant);</pre><p>Create a new font variant attribute (normal or small caps)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>variant</code></em>&#160;:</span></td><td> the variant</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3144926"></a><h3><a name="pango-attr-stretch-new"></a>pango_attr_stretch_new ()</h3><a class="indexterm" name="id3144940"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_stretch_new              (<a href="pango-Fonts.html#PangoStretch">PangoStretch</a> stretch);</pre><p>Create a new font stretch attribute</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>stretch</code></em>&#160;:</span></td><td> the stretch</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3145021"></a><h3><a name="pango-attr-weight-new"></a>pango_attr_weight_new ()</h3><a class="indexterm" name="id3145035"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_weight_new               (<a href="pango-Fonts.html#PangoWeight">PangoWeight</a> weight);</pre><p>Create a new font weight attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>weight</code></em>&#160;:</span></td><td> the weight</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3145116"></a><h3><a name="pango-attr-size-new"></a>pango_attr_size_new ()</h3><a class="indexterm" name="id3145129"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_size_new                 (int size);</pre><p>Create a new font-size attribute in fractional points.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></td><td> the font size, in <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><code class="literal">PANGO_SCALE</code></a>ths of a point.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3145222"></a><h3><a name="pango-attr-size-new-absolute"></a>pango_attr_size_new_absolute ()</h3><a class="indexterm" name="id3145238"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_size_new_absolute        (int size);</pre><p>Create a new font-size attribute in device units.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></td><td> the font size, in <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><code class="literal">PANGO_SCALE</code></a>ths of a device unit.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div><p class="since">Since  1.8</p></div><hr><div class="refsect2" lang="en"><a name="id3145338"></a><h3><a name="pango-attr-font-desc-new"></a>pango_attr_font_desc_new ()</h3><a class="indexterm" name="id3145351"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_font_desc_new            (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Create a new font description attribute. This attributeallows setting family, style, weight, variant, stretch,and size simultaneously.</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>&#160;:</span></td><td> the font description</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td>  the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3145435"></a><h3><a name="pango-attr-foreground-new"></a>pango_attr_foreground_new ()</h3><a class="indexterm" name="id3145449"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     pango_attr_foreground_new           (<ahref="../glib/glib-Basic-Types.html#guint16">guint16</a> red,                                                         <ahref="../glib/glib-Basic-Types.html#guint16">guint

⌨️ 快捷键说明

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