?? pango-win32-fonts-and-rendering.html
字號:
int y);</pre><p>Render a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> onto a device context. For underlining towork property the text alignment of the DC should have TA_BASELINEand TA_LEFT.</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> :</span></td><td> DC to use for uncolored drawing</td></tr><tr><td><span class="term"><em class="parameter"><code>line</code></em> :</span></td><td> a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>x</code></em> :</span></td><td> the x position of start of string (in pixels)</td></tr><tr><td><span class="term"><em class="parameter"><code>y</code></em> :</span></td><td> the y position of baseline (in pixels)</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2872415"></a><h3><a name="pango-win32-render-layout"></a>pango_win32_render_layout ()</h3><a class="indexterm" name="id2872428"></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> :</span></td><td> HDC to use for uncolored drawing</td></tr><tr><td><span class="term"><em class="parameter"><code>layout</code></em> :</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> :</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> :</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="id2872558"></a><h3><a name="pango-win32-get-unknown-glyph"></a>pango_win32_get_unknown_glyph ()</h3><a class="indexterm" name="id2872574"></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> :</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> :</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> :</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="id2872704"></a><h3><a name="pango-win32-font-get-glyph-index"></a>pango_win32_font_get_glyph_index ()</h3><a class="indexterm" name="id2872718"></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> :</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> :</span></td><td> a Unicode character.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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="id2872826"></a><h3><a name="pango-win32-font-select-font"></a>pango_win32_font_select_font ()</h3><a class="indexterm" name="id2872840"></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> :</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> :</span></td><td> a windows device context</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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="id2872994"></a><h3><a name="pango-win32-font-done-font"></a>pango_win32_font_done_font ()</h3><a class="indexterm" name="id2873008"></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> :</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="id2873076"></a><h3><a name="pango-win32-font-get-metrics-factor"></a>pango_win32_font_get_metrics_factor ()</h3><a class="indexterm" name="id2873090"></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> :</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> :</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="id2873173"></a><h3><a name="pango-win32-get-debug-flag"></a>pango_win32_get_debug_flag ()</h3><a class="indexterm" name="id2873189"></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> :</span></td><td> <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if debugging is turned on.</td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -