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

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

📁 linux
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a class="indexterm" name="id3204382"></a><pre class="programlisting">HFONT               pango_win32_font_cache_load         (<a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache">PangoWin32FontCache</a> *cache,                                                         const LOGFONTA *logfont);</pre><p>Creates a HFONT from a LOGFONTA. Theresult may be newly loaded, or it may have been previouslystored</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><tr><td><span class="term"><em class="parameter"><code>logfont</code></em>&#160;:</span></td><td> a pointer to a LOGFONTA structure describing the font to load.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The font structure, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the font couldnot be loaded. In order to free this structure, you must call<a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-cache-unload"><code class="function">pango_win32_font_cache_unload()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204497"></a><h3><a name="pango-win32-font-cache-loadw"></a>pango_win32_font_cache_loadw ()</h3><a class="indexterm" name="id3204513"></a><pre class="programlisting">HFONT               pango_win32_font_cache_loadw        (<a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache">PangoWin32FontCache</a> *cache,                                                         const LOGFONTW *logfont);</pre><p>Creates a HFONT from a LOGFONTW. Theresult may be newly loaded, or it may have been previouslystored</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><tr><td><span class="term"><em class="parameter"><code>logfont</code></em>&#160;:</span></td><td> a pointer to a LOGFONTW structure describing the font to load.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The font structure, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the font couldnot be loaded. In order to free this structure, you must call<a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-cache-unload"><code class="function">pango_win32_font_cache_unload()</code></a>.</td></tr></tbody></table></div><p class="since">Since  1.16</p></div><hr><div class="refsect2" lang="en"><a name="id3204637"></a><h3><a name="pango-win32-font-cache-unload"></a>pango_win32_font_cache_unload ()</h3><a class="indexterm" name="id3204650"></a><pre class="programlisting">void                pango_win32_font_cache_unload       (<a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache">PangoWin32FontCache</a> *cache,                                                         HFONT hfont);</pre><p>Frees a font structure previously loaded with <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-cache-load"><code class="function">pango_win32_font_cache_load()</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>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><tr><td><span class="term"><em class="parameter"><code>hfont</code></em>&#160;:</span></td><td> the HFONT to unload</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204742"></a><h3><a name="pango-win32-font-map-for-display"></a>pango_win32_font_map_for_display ()</h3><a class="indexterm" name="id3204755"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a>*       pango_win32_font_map_for_display    (void);</pre><p>Returns a <span class="type">PangoWin32FontMap</span>. Font maps are cached and shouldnot be freed. If the font map is no longer needed, it canbe released with <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-shutdown-display"><code class="function">pango_win32_shutdown_display()</code></a>.</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 <a href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204826"></a><h3><a name="pango-win32-shutdown-display"></a>pango_win32_shutdown_display ()</h3><a class="indexterm" name="id3204840"></a><pre class="programlisting">void                pango_win32_shutdown_display        (void);</pre><p>Free cached resources.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3204865"></a><h3><a name="pango-win32-font-map-get-font-cache"></a>pango_win32_font_map_get_font_cache ()</h3><a class="indexterm" name="id3204880"></a><pre class="programlisting"><a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache">PangoWin32FontCache</a>* pango_win32_font_map_get_font_cache                                                        (<a href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> *font_map);</pre><p>Obtains the font cache associated with the given font map.</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_map</code></em>&#160;:</span></td><td> a <span class="type">PangoWin32FontMap</span>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the <a href="pango-Win32-Fonts-and-Rendering.html#PangoWin32FontCache"><span class="type">PangoWin32FontCache</span></a> of <em class="parameter"><code>font_map</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3204964"></a><h3><a name="pango-win32-font-logfont"></a>pango_win32_font_logfont ()</h3><a class="indexterm" name="id3204977"></a><pre class="programlisting">LOGFONTA*           pango_win32_font_logfont            (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre><p>Determine the LOGFONTA struct for the specified font. Note thatPango internally uses LOGFONTW structs, so if converting the UTF-16face name in the LOGFONTW struct to system codepage fails, thereturned LOGFONTA will have an emppty face name. To get theLOGFONTW of a PangoFont, use <a href="pango-Win32-Fonts-and-Rendering.html#pango-win32-font-logfontw"><code class="function">pango_win32_font_logfontw()</code></a>. Itis recommended to do that always even if you don't expectto come across fonts with odd names.</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> which must be from the Win32 backend</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> A newly allocated LOGFONTA struct. It must befreed with <ahref="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3205074"></a><h3><a name="pango-win32-font-logfontw"></a>pango_win32_font_logfontw ()</h3><a class="indexterm" name="id3205090"></a><pre class="programlisting">LOGFONTW*           pango_win32_font_logfontw           (<a href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre><p>Determine the LOGFONTW struct for the specified font.</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> which must be from the Win32 backend</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> A newly allocated LOGFONTW struct. It must befreed with <ahref="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td></tr></tbody></table></div><p class="since">Since  1.16</p></div><hr><div class="refsect2" lang="en"><a name="id3205177"></a><h3><a name="pango-win32-font-description-from-logfont"></a>pango_win32_font_description_from_logfont ()</h3><a class="indexterm" name="id3205195"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* pango_win32_font_description_from_logfont                                                        (const LOGFONTA *lfp);</pre><p>Creates a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> that matches the specified LOGFONTA.</p><p>The face name, italicness and weight fields in the LOGFONTA are usedto set up the resulting <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. If the face name inthe LOGFONTA contains non-ASCII characters the font is temporarilyloaded (using <code class="function">CreateFontIndirect()</code>) and an ASCII (usually English)name for it is looked up from the font name tables in the fontdata. If that doesn't work, the face name is converted from thesystem codepage to UTF-8 and that is used.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>lfp</code></em>&#160;:</span></td><td> a LOGFONTA</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which should be freed using <a href="pango-Fonts.html#pango-font-description-free"><code class="function">pango_font_description_free()</code></a></td></tr></tbody></table></div><p class="since">Since  1.12</p></div><hr><div class="refsect2" lang="en"><a name="id3205324"></a><h3><a name="pango-win32-font-description-from-logfontw"></a>pango_win32_font_description_from_logfontw ()</h3><a class="indexterm" name="id3205341"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* pango_win32_font_description_from_logfontw                                                        (const LOGFONTW *lfp);</pre><p>Creates a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> that matches the specified LOGFONTW.</p><p>The face name, italicness and weight fields in the LOGFONTW are usedto set up the resulting <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. If the face name inthe LOGFONTW contains non-ASCII characters the font is temporarilyloaded (using <code class="function">CreateFontIndirect()</code>) and an ASCII (usually English)name for it is looked up from the font name tables in the fontdata. If that doesn't work, the face name is converted from UTF-16to UTF-8 and that is used.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>lfp</code></em>&#160;:</span></td><td> a LOGFONTW</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which should be freed using <a href="pango-Fonts.html#pango-font-description-free"><code class="function">pango_font_description_free()</code></a></td></tr></tbody></table></div><p class="since">Since  1.16</p></div></div></div></body></html>

⌨️ 快捷键说明

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