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

📄 pango-win32-fonts-and-rendering.html

📁 linux
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3203296"></a><h3><a name="pango-win32-render-layout"></a>pango_win32_render_layout ()</h3><a class="indexterm" name="id3203310"></a><pre class="programlisting">void                pango_win32_render_layout           (HDC hdc,                                                         <a href="pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout,                                                         int x,                                                         int y);</pre><p>Render a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> onto an X drawable</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>hdc</code></em>&#160;:</span></td><td>       HDC to use for uncolored drawing</td></tr><tr><td><span class="term"><em class="parameter"><code>layout</code></em>&#160;:</span></td><td>    a <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td><td>         the X position of the left of the layout (in pixels)</td></tr><tr><td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td><td>         the Y position of the top of the layout (in pixels)</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3203440"></a><h3><a name="pango-win32-get-unknown-glyph"></a>pango_win32_get_unknown_glyph ()</h3><a class="indexterm" name="id3203456"></a><pre class="programlisting"><a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a>          pango_win32_get_unknown_glyph       (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                                         <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">pango_win32_get_unknown_glyph</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the index of a glyph suitable for drawing <em class="parameter"><code>wc</code></em> as anunknown character.</p><p>Use <a href="pango-Glyph-Storage.html#PANGO-GET-UNKNOWN-GLYPH:CAPS"><code class="function">PANGO_GET_UNKNOWN_GLYPH()</code></a> instead.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>font</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>wc</code></em>&#160;:</span></td><td> the Unicode character for which a glyph is needed.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> a glyph index into <em class="parameter"><code>font</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3203587"></a><h3><a name="pango-win32-font-get-glyph-index"></a>pango_win32_font_get_glyph_index ()</h3><a class="indexterm" name="id3203600"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gint">gint</a>                pango_win32_font_get_glyph_index    (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                                         <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);</pre><p>Obtains the index of the glyph for <em class="parameter"><code>wc</code></em> in <em class="parameter"><code>font</code></em>, or 0, if notcovered.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>font</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>wc</code></em>&#160;:</span></td><td> a Unicode character.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the glyph index for <em class="parameter"><code>wc</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3203708"></a><h3><a name="pango-win32-font-select-font"></a>pango_win32_font_select_font ()</h3><a class="indexterm" name="id3203722"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a>            pango_win32_font_select_font        (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font,                                                         HDC hdc);</pre><p>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 <code class="function">SaveDC()</code> and <code class="function">RestoreDC()</code>. Call <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-done-font"><code class="function">pango_win32_font_done_font()</code></a> whenyou are done using the DC to release allocated resources.</p><p>See <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-get-metrics-factor"><code class="function">pango_win32_font_get_metrics_factor()</code></a> for information aboutconverting from the coordinate space used by this functioninto Pango 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>font</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from the Win32 backend</td></tr><tr><td><span class="term"><em class="parameter"><code>hdc</code></em>&#160;:</span></td><td> a windows device context</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the operation succeeded.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3203877"></a><h3><a name="pango-win32-font-done-font"></a>pango_win32_font_done_font ()</h3><a class="indexterm" name="id3203891"></a><pre class="programlisting">void                pango_win32_font_done_font          (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre><p>Releases any resources allocated by <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-done-font"><code class="function">pango_win32_font_done_font()</code></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>font</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from the win32 backend</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3203959"></a><h3><a name="pango-win32-font-get-metrics-factor"></a>pango_win32_font_get_metrics_factor ()</h3><a class="indexterm" name="id3203973"></a><pre class="programlisting">double              pango_win32_font_get_metrics_factor (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre><p>Returns the scale factor from logical units in the coordinatespace used by <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-select-font"><code class="function">pango_win32_font_select_font()</code></a> to Pango unitsin user space.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>font</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> from the win32 backend</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> factor to multiply logical units by to get Pango              units.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204055"></a><h3><a name="pango-win32-get-debug-flag"></a>pango_win32_get_debug_flag ()</h3><a class="indexterm" name="id3204072"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a>            pango_win32_get_debug_flag          (void);</pre><p>Returns whether debugging is turned on.</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>&#160;:</span></td><td> <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debugging is turned on.</td></tr></tbody></table></div><p class="since">Since  1.2</p></div><hr><div class="refsect2" lang="en"><a name="id3204128"></a><h3><a name="pango-win32-get-dc"></a>pango_win32_get_dc ()</h3><a class="indexterm" name="id3204142"></a><pre class="programlisting">HDC                 pango_win32_get_dc                  (void);</pre><p>Obtains a handle to the Windows device context that is used by Pango.</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>&#160;:</span></td><td> A handle to the Windows device context that is used by Pango.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204183"></a><h3><a name="PangoWin32FontCache"></a>PangoWin32FontCache</h3><a class="indexterm" name="id3204196"></a><pre class="programlisting">typedef struct _PangoWin32FontCache PangoWin32FontCache;</pre><p>A <a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache"><span class="type">PangoWin32FontCache</span></a> cachesHFONTs by their LOGFONT descriptions. </p></div><hr><div class="refsect2" lang="en"><a name="id3204221"></a><h3><a name="pango-win32-font-cache-new"></a>pango_win32_font_cache_new ()</h3><a class="indexterm" name="id3204235"></a><pre class="programlisting"><a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache">PangoWin32FontCache</a>* pango_win32_font_cache_new         (void);</pre><p>Creates a font cache.</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>&#160;:</span></td><td> The new font cache. This must be freed with<a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-cache-free"><code class="function">pango_win32_font_cache_free()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204286"></a><h3><a name="pango-win32-font-cache-free"></a>pango_win32_font_cache_free ()</h3><a class="indexterm" name="id3204300"></a><pre class="programlisting">void                pango_win32_font_cache_free         (<a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache">PangoWin32FontCache</a> *cache);</pre><p>Frees a <a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache"><span class="type">PangoWin32FontCache</span></a> and all associated memory. All fonts loadedthrough this font cache will be freed along with the cache.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cache</code></em>&#160;:</span></td><td> a <a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache"><span class="type">PangoWin32FontCache</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204368"></a><h3><a name="pango-win32-font-cache-load"></a>pango_win32_font_cache_load ()</h3>

⌨️ 快捷键说明

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