📄 xft-fonts.xml
字号:
<link linkend="gint">gint</link> x, <link linkend="gint">gint</link> y);</programlisting><para>Renders a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link> onto an <type>XftDraw</type> object wrapping an X drawable.</para><para></para><variablelist role="params"><varlistentry><term><parameter>draw</parameter> :</term><listitem><simpara> the <type>XftDraw</type> object.</simpara></listitem></varlistentry><varlistentry><term><parameter>color</parameter> :</term><listitem><simpara> the color in which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>font</parameter> :</term><listitem><simpara> the font in which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> the glyph string to draw</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> the x position of start of string (in pixels)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> the y position of baseline (in pixels)</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="pango-xft-picture-render" role="function"><title>pango_xft_picture_render ()</title><indexterm zone="pango-xft-picture-render"><primary>pango_xft_picture_render</primary></indexterm><programlisting><link linkend="void">void</link> pango_xft_picture_render (<link linkend="Display">Display</link> *display, <link linkend="Picture">Picture</link> src_picture, <link linkend="Picture">Picture</link> dest_picture, <link linkend="PangoFont">PangoFont</link> *font, <link linkend="PangoGlyphString">PangoGlyphString</link> *glyphs, <link linkend="gint">gint</link> x, <link linkend="gint">gint</link> y);</programlisting><para>Renders a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link> onto an Xrender <type>Picture</type> object.</para><para></para><variablelist role="params"><varlistentry><term><parameter>display</parameter> :</term><listitem><simpara> an X display</simpara></listitem></varlistentry><varlistentry><term><parameter>src_picture</parameter> :</term><listitem><simpara> the source picture to draw the string with</simpara></listitem></varlistentry><varlistentry><term><parameter>dest_picture</parameter> :</term><listitem><simpara> the destination picture to draw the string onto</simpara></listitem></varlistentry><varlistentry><term><parameter>font</parameter> :</term><listitem><simpara> the font in which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> the glyph string to draw</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> the x position of start of string (in pixels)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> the y position of baseline (in pixels)</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="pango-xft-render-transformed" role="function" condition="since:1.8"><title>pango_xft_render_transformed ()</title><indexterm zone="pango-xft-render-transformed" role="1.8"><primary>pango_xft_render_transformed</primary></indexterm><programlisting><link linkend="void">void</link> pango_xft_render_transformed (<link linkend="XftDraw">XftDraw</link> *draw, <link linkend="XftColor">XftColor</link> *color, <link linkend="PangoMatrix">PangoMatrix</link> *matrix, <link linkend="PangoFont">PangoFont</link> *font, <link linkend="PangoGlyphString">PangoGlyphString</link> *glyphs, <link linkend="int">int</link> x, <link linkend="int">int</link> y);</programlisting><para>Renders a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link> onto a <link linkend="XftDraw"><type>XftDraw</type></link>, possiblytransforming the layed-out coordinates through a transformationmatrix. Note that the transformation matrix for <parameter>font</parameter> is notchanged, so to produce correct rendering results, the <parameter>font</parameter>must have been loaded using a <link linkend="PangoContext"><type>PangoContext</type></link> with an identicaltransformation matrix to that passed in to this function.</para><para></para><variablelist role="params"><varlistentry><term><parameter>draw</parameter> :</term><listitem><simpara> an <link linkend="XftDraw"><type>XftDraw</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>color</parameter> :</term><listitem><simpara> the color in which to draw the glyphs</simpara></listitem></varlistentry><varlistentry><term><parameter>matrix</parameter> :</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> to use an identity transformation</simpara></listitem></varlistentry><varlistentry><term><parameter>font</parameter> :</term><listitem><simpara> the font in which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> the glyph string to draw</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> the x position of the start of the string (in Pango units in user space coordinates)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> the y position of the baseline (in Pango units in user space coordinates)</simpara></listitem></varlistentry></variablelist><para role="since">Since 1.8</para></refsect2><refsect2 id="pango-xft-render-layout-line" role="function" condition="since:1.8"><title>pango_xft_render_layout_line ()</title><indexterm zone="pango-xft-render-layout-line" role="1.8"><primary>pango_xft_render_layout_line</primary></indexterm><programlisting><link linkend="void">void</link> pango_xft_render_layout_line (<link linkend="XftDraw">XftDraw</link> *draw, <link linkend="XftColor">XftColor</link> *color, <link linkend="PangoLayoutLine">PangoLayoutLine</link> *line, <link linkend="int">int</link> x, <link linkend="int">int</link> y);</programlisting><para>Render a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link> onto a <link linkend="XftDraw"><type>XftDraw</type></link></para><para></para><variablelist role="params"><varlistentry><term><parameter>draw</parameter> :</term><listitem><simpara> an <link linkend="XftDraw"><type>XftDraw</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>color</parameter> :</term><listitem><simpara> the foreground color in which to draw the layout line (may be overridden by color attributes)</simpara></listitem></varlistentry><varlistentry><term><parameter>line</parameter> :</term><listitem><simpara> a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> the x position of start of string (in Pango units)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> the y position of baseline (in Pango units)</simpara></listitem></varlistentry></variablelist><para role="since">Since 1.8</para></refsect2><refsect2 id="pango-xft-render-layout" role="function" condition="since:1.8"><title>pango_xft_render_layout ()</title><indexterm zone="pango-xft-render-layout" role="1.8"><primary>pango_xft_render_layout</primary></indexterm><programlisting><link linkend="void">void</link> pango_xft_render_layout (<link linkend="XftDraw">XftDraw</link> *draw, <link linkend="XftColor">XftColor</link> *color, <link linkend="PangoLayout">PangoLayout</link> *layout, <link linkend="int">int</link> x, <link linkend="int">int</link> y);</programlisting><para>Render a <link linkend="PangoLayout"><type>PangoLayout</type></link> onto a <link linkend="XftDraw"><type>XftDraw</type></link></para><para></para><variablelist role="params"><varlistentry><term><parameter>draw</parameter> :</term><listitem><simpara> an <link linkend="XftDraw"><type>XftDraw</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>color</parameter> :</term><listitem><simpara> the foreground color in which to draw the layout (may be overridden by color attributes)</simpara></listitem></varlistentry><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> the X position of the left of the layout (in Pango units)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> the Y position of the top of the layout (in Pango units)</simpara></listitem></varlistentry></variablelist><para role="since">Since 1.8</para></refsect2></refsect1><refsect1 id="pango-Xft-Fonts-and-Rendering.property-details" role="property_details"><title role="property_details.title">Property Details</title><refsect2 id="PangoXftRenderer--display"><title>The <literal>"display"</literal> property</title><indexterm zone="PangoXftRenderer--display"><primary>PangoXftRenderer:display</primary></indexterm><programlisting> "display" <link linkend="gpointer">gpointer</link> : Write / Construct Only</programlisting><para>The display being rendered to.</para></refsect2><refsect2 id="PangoXftRenderer--screen"><title>The <literal>"screen"</literal> property</title><indexterm zone="PangoXftRenderer--screen"><primary>PangoXftRenderer:screen</primary></indexterm><programlisting> "screen" <link linkend="gint">gint</link> : Write / Construct Only</programlisting><para>The screen being rendered to.</para><para>Allowed values: >= 0</para><para>Default value: 0</para></refsect2></refsect1></refentry>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -