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

📄 freetype-fonts.xml

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 XML
📖 第 1 页 / 共 3 页
字号:
</para><variablelist role="params"><varlistentry><term><parameter>pattern</parameter>&nbsp;:</term><listitem><simpara>the <type>FcPattern</type> to tweak.</simpara></listitem></varlistentry><varlistentry><term><parameter>data</parameter>&nbsp;:</term><listitem><simpara>user data.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-ft2-font-map-set-default-substitute" role="function" condition="since:1.2"/>pango_ft2_font_map_set_default_substitute ()</title><indexterm role="1.2"><primary>pango_ft2_font_map_set_default_substitute</primary></indexterm><programlisting><link linkend="void">void</link>        pango_ft2_font_map_set_default_substitute                                            (<link linkend="PangoFT2FontMap">PangoFT2FontMap</link> *fontmap,                                             <link linkend="PangoFT2SubstituteFunc">PangoFT2SubstituteFunc</link> func,                                             <link linkend="gpointer">gpointer</link> data,                                             <link linkend="GDestroyNotify">GDestroyNotify</link> notify);</programlisting><para>Sets a function that will be called to do final configurationsubstitution on a <link linkend="FcPattern"><type>FcPattern</type></link> before it is used to loadthe font. This function can be used to do things like sethinting and antialiasing options.</para><para></para><variablelist role="params"><varlistentry><term><parameter>fontmap</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFT2FontMap"><type>PangoFT2FontMap</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>func</parameter>&nbsp;:</term><listitem><simpara> function to call to to do final config tweaking       on <link linkend="FcPattern"><type>FcPattern</type></link> objects.</simpara></listitem></varlistentry><varlistentry><term><parameter>data</parameter>&nbsp;:</term><listitem><simpara> data to pass to <parameter>func</parameter></simpara></listitem></varlistentry><varlistentry><term><parameter>notify</parameter>&nbsp;:</term><listitem><simpara> function to call when <parameter>data</parameter> is no longer used.</simpara></listitem></varlistentry></variablelist><para>Since  1.2</para></refsect2><refsect2><title><anchor id="pango-ft2-font-map-substitute-changed" role="function" condition="since:1.2"/>pango_ft2_font_map_substitute_changed ()</title><indexterm role="1.2"><primary>pango_ft2_font_map_substitute_changed</primary></indexterm><programlisting><link linkend="void">void</link>        pango_ft2_font_map_substitute_changed                                            (<link linkend="PangoFT2FontMap">PangoFT2FontMap</link> *fontmap);</programlisting><para>Call this function any time the results of thedefault substitution function set with<link linkend="pango-ft2-font-map-set-default-substitute"><function>pango_ft2_font_map_set_default_substitute()</function></link> change.That is, if your substitution function will return differentresults for the same input pattern, you must call this function.</para><para></para><variablelist role="params"><varlistentry><term><parameter>fontmap</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoFT2Fontmap"><type>PangoFT2Fontmap</type></link></simpara></listitem></varlistentry></variablelist><para>Since  1.2</para></refsect2><refsect2><title><anchor id="pango-ft2-get-context" role="function" condition="deprecated:"/>pango_ft2_get_context ()</title><indexterm role="deprecated"><primary>pango_ft2_get_context</primary></indexterm><programlisting><link linkend="PangoContext">PangoContext</link>* pango_ft2_get_context         (<link linkend="double">double</link> dpi_x,                                             <link linkend="double">double</link> dpi_y);</programlisting><warning><para><literal>pango_ft2_get_context</literal> is deprecated and should not be used in newly-written code.</para></warning><para>Retrieves a <link linkend="PangoContext"><type>PangoContext</type></link> for the default PangoFT2 fontmap(see <link linkend="pango-ft2-fontmap-get-for-display"><function>pango_ft2_fontmap_get_for_display()</function></link>) and sets the resolutionfor the default fontmap to <parameter>dpi_x</parameter> by <parameter>dpi_y</parameter>.</para><para>Use of this function is deprecated; see <link linkend="pango-ft2-fontmap-create-context"><function>pango_ft2_fontmap_create_context()</function></link>instead.</para><para></para><variablelist role="params"><varlistentry><term><parameter>dpi_x</parameter>&nbsp;:</term><listitem><simpara>  the horizontal DPI of the target device</simpara></listitem></varlistentry><varlistentry><term><parameter>dpi_y</parameter>&nbsp;:</term><listitem><simpara>  the vertical DPI of the target device</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the new <link linkend="PangoContext"><type>PangoContext</type></link></simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-ft2-render" role="function"/>pango_ft2_render ()</title><indexterm><primary>pango_ft2_render</primary></indexterm><programlisting><link linkend="void">void</link>        pango_ft2_render                (<link linkend="FT-Bitmap">FT_Bitmap</link> *bitmap,                                             <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 a FreeType2 bitmap.</para><para></para><variablelist role="params"><varlistentry><term><parameter>bitmap</parameter>&nbsp;:</term><listitem><simpara>  the FreeType2 bitmap onto which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>font</parameter>&nbsp;:</term><listitem><simpara>    the font in which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter>&nbsp;:</term><listitem><simpara>  the glyph string to draw</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter>&nbsp;:</term><listitem><simpara>       the x position of the start of the string (in pixels)</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter>&nbsp;:</term><listitem><simpara>       the y position of the baseline (in pixels)</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="pango-ft2-render-transformed" role="function" condition="since:1.6"/>pango_ft2_render_transformed ()</title><indexterm role="1.6"><primary>pango_ft2_render_transformed</primary></indexterm><programlisting><link linkend="void">void</link>        pango_ft2_render_transformed    (<link linkend="FT-Bitmap">FT_Bitmap</link> *bitmap,                                             const <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 FreeType2 bitmap, 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>bitmap</parameter>&nbsp;:</term><listitem><simpara>  the FreeType2 bitmap onto which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>matrix</parameter>&nbsp;:</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>&nbsp;:</term><listitem><simpara>    the font in which to draw the string</simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter>&nbsp;:</term><listitem><simpara>  the glyph string to draw</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter>&nbsp;:</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>&nbsp;:</term><listitem><simpara>       the y position of the baseline (in Pango units          in user space coordinates)</simpara></listitem></varlistentry></variablelist><para>Since  1.6</para></refsect2><refsect2><title><anchor id="pango-ft2-render-layout-line" role="function"/>pango_ft2_render_layout_line ()</title><indexterm><primary>pango_ft2_render_layout_line</primary></indexterm><programlisting><link linkend="void">void</link>        pango_ft2_render_layout_line    (<link linkend="FT-Bitmap">FT_Bitmap</link> *bitmap,                                             <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 FreeType2 bitmap</para><para></para><variablelist role="params"><varlistentry><term><parameter>bitmap</parameter>&nbsp;:</term><listitem><simpara>    a <type>FT_Bitmap</type> to render the line onto</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-ft2-render-layout-line-subpixel" role="function" condition="since:1.6"/>pango_ft2_render_layout_line_subpixel ()</title><indexterm role="1.6"><primary>pango_ft2_render_layout_line_subpixel</primary></indexterm><programlisting><link linkend="void">void</link>        pango_ft2_render_layout_line_subpixel                                            (<link linkend="FT-Bitmap">FT_Bitmap</link> *bitmap,                                             <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 FreeType2 bitmap, with helocation specified in fixed-point Pango units rather thanpixels. (Using this will avoid extra inaccuracies fromrounding to integer pixels multiple times, even if thefinal glyph positions are integers.)</para><para></para><variablelist role="params">

⌨️ 快捷键说明

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