win32-fonts.xml

来自「GTK+-2.0源码之pango-1.15.6.tar.gz」· XML 代码 · 共 509 行 · 第 1/3 页

XML
509
字号
          units in user space coordinates)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter>&nbsp;:</term><listitem><simpara>       the y position of the baseline (in Pango units          in user space coordinates)</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-render-layout-line" role="function"/>pango_win32_render_layout_line ()</title><indexterm><primary>pango_win32_render_layout_line</primary></indexterm><programlisting><link linkend="void">void</link>        pango_win32_render_layout_line  (<link linkend="HDC:CAPS">HDC</link> hdc,                                             <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 device context. For underlining towork property the text alignment of the DC should have TA_BASELINEand TA_LEFT.</para><para></para><variablelist role="params"><varlistentry><term><parameter>hdc</parameter>&nbsp;:</term><listitem><simpara>       DC to use for uncolored drawing</simpara></listitem></varlistentry><varlistentry><term><parameter>line</parameter>&nbsp;:</term><listitem><simpara>      a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter>&nbsp;:</term><listitem><simpara>         the x position of start of string (in pixels)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter>&nbsp;:</term><listitem><simpara>         the y position of baseline (in pixels)</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-render-layout" role="function"/>pango_win32_render_layout ()</title><indexterm><primary>pango_win32_render_layout</primary></indexterm><programlisting><link linkend="void">void</link>        pango_win32_render_layout       (<link linkend="HDC:CAPS">HDC</link> hdc,                                             <link linkend="PangoLayout">PangoLayout</link> *layout,                                             <link linkend="int">int</link> x,                                             <link linkend="int">int</link> y);</programlisting><para>Render a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link> onto an X drawable</para><para></para><variablelist role="params"><varlistentry><term><parameter>hdc</parameter>&nbsp;:</term><listitem><simpara>       HDC to use for uncolored drawing</simpara></listitem></varlistentry><varlistentry><term><parameter>layout</parameter>&nbsp;:</term><listitem><simpara>    a <link linkend="PangoLayout"><type>PangoLayout</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter>&nbsp;:</term><listitem><simpara>         the X position of the left of the layout (in pixels)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter>&nbsp;:</term><listitem><simpara>         the Y position of the top of the layout (in pixels)</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-get-unknown-glyph" role="function" condition="deprecated:"/>pango_win32_get_unknown_glyph ()</title><indexterm role="deprecated"><primary>pango_win32_get_unknown_glyph</primary></indexterm><programlisting><link linkend="PangoGlyph">PangoGlyph</link>  pango_win32_get_unknown_glyph   (<link linkend="PangoFont">PangoFont</link> *font,                                             <link linkend="gunichar">gunichar</link> wc);</programlisting><warning><para><literal>pango_win32_get_unknown_glyph</literal> is deprecated and should not be used in newly-written code.</para></warning><para>Returns the index of a glyph suitable for drawing <parameter>wc</parameter> as anunknown character.</para><para>Use <link linkend="PANGO-GET-UNKNOWN-GLYPH:CAPS"><function>PANGO_GET_UNKNOWN_GLYPH()</function></link> instead.</para><para></para><variablelist role="params"><varlistentry><term><parameter>font</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>wc</parameter>&nbsp;:</term><listitem><simpara> the Unicode character for which a glyph is needed.</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a glyph index into <parameter>font</parameter></simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-font-get-glyph-index" role="function"/>pango_win32_font_get_glyph_index ()</title><indexterm><primary>pango_win32_font_get_glyph_index</primary></indexterm><programlisting><link linkend="gint">gint</link>        pango_win32_font_get_glyph_index                                            (<link linkend="PangoFont">PangoFont</link> *font,                                             <link linkend="gunichar">gunichar</link> wc);</programlisting><para>Obtains the index of the glyph for <parameter>wc</parameter> in <parameter>font</parameter>, or 0, if notcovered.</para><para></para><variablelist role="params"><varlistentry><term><parameter>font</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link>.</simpara></listitem></varlistentry><varlistentry><term><parameter>wc</parameter>&nbsp;:</term><listitem><simpara> a Unicode character.</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the glyph index for <parameter>wc</parameter>.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-font-select-font" role="function"/>pango_win32_font_select_font ()</title><indexterm><primary>pango_win32_font_select_font</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    pango_win32_font_select_font    (<link linkend="PangoFont">PangoFont</link> *font,                                             <link linkend="HDC:CAPS">HDC</link> hdc);</programlisting><para>Selects the font into the specified DC and changes the mapping modeand world transformation of the DC appropriately for the font.You may want to surround the use of this function with callsto <link linkend="SaveDC"><function>SaveDC()</function></link> and <link linkend="RestoreDC"><function>RestoreDC()</function></link>. Call <link linkend="pango-win32-font-done-font"><function>pango_win32_font_done_font()</function></link> whenyou are done using the DC to release allocated resources.</para><para>See <link linkend="pango-win32-font-get-metrics-factor"><function>pango_win32_font_get_metrics_factor()</function></link> for information aboutconverting from the coordinate space used by this functioninto Pango units.</para><para></para><variablelist role="params"><varlistentry><term><parameter>font</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link> from the Win32 backend</simpara></listitem></varlistentry><varlistentry><term><parameter>hdc</parameter>&nbsp;:</term><listitem><simpara> a windows device context</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the operation succeeded.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-font-done-font" role="function"/>pango_win32_font_done_font ()</title><indexterm><primary>pango_win32_font_done_font</primary></indexterm><programlisting><link linkend="void">void</link>        pango_win32_font_done_font      (<link linkend="PangoFont">PangoFont</link> *font);</programlisting><para>Releases any resources allocated by <link linkend="pango-win32-font-done-font"><function>pango_win32_font_done_font()</function></link></para><para></para><variablelist role="params"><varlistentry><term><parameter>font</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link> from the win32 backend</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-font-get-metrics-factor" role="function"/>pango_win32_font_get_metrics_factor ()</title><indexterm><primary>pango_win32_font_get_metrics_factor</primary></indexterm><programlisting><link linkend="double">double</link>      pango_win32_font_get_metrics_factor                                            (<link linkend="PangoFont">PangoFont</link> *font);</programlisting><para>Returns the scale factor from logical units in the coordinatespace used by <link linkend="pango-win32-font-select-font"><function>pango_win32_font_select_font()</function></link> to Pango unitsin user space.</para><para></para><variablelist role="params"><varlistentry><term><parameter>font</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link> from the win32 backend</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> factor to multiply logical units by to get Pango              units.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-win32-get-debug-flag" role="function" condition="since:1.2"/>pango_win32_get_debug_flag ()</title><indexterm role="1.2"><primary>pango_win32_get_debug_flag</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    pango_win32_get_debug_flag      (void);</programlisting><para>Returns whether debugging is turned on.</para><para></para><variablelist role="params"><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if debugging is turned on.</simpara></listitem></varlistentry></variablelist><para>Since  1.2</para></refsect2>

⌨️ 快捷键说明

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