📄 pangofcfont.html
字号:
<tbody><tr><td><span class="term"><em class="parameter"><code>font</code></em> :</span></td><td> a <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the FreeType <span class="type">FT_Face</span> associated with <em class="parameter"><code>font</code></em>.</td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2920924"></a><h3><a name="pango-fc-font-unlock-face"></a>pango_fc_font_unlock_face ()</h3><a class="indexterm" name="id2920940"></a><pre class="programlisting">void pango_fc_font_unlock_face (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font);</pre><p>Releases a font previously obtained with<a href="PangoFcFont.html#pango-fc-font-lock-face"><code class="function">pango_fc_font_lock_face()</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="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a>.</td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2921012"></a><h3><a name="pango-fc-font-has-char"></a>pango_fc_font_has_char ()</h3><a class="indexterm" name="id2921028"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_fc_font_has_char (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);</pre><p>Determines whether <em class="parameter"><code>font</code></em> has a glyph for the codepoint <em class="parameter"><code>wc</code></em>.</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="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>wc</code></em> :</span></td><td> Unicode codepoint to look up</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 <em class="parameter"><code>font</code></em> has the requested codepoint.</td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2921150"></a><h3><a name="pango-fc-font-get-glyph"></a>pango_fc_font_get_glyph ()</h3><a class="indexterm" name="id2921165"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#guint">guint</a> pango_fc_font_get_glyph (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);</pre><p>Gets the glyph index for a given Unicode characterfor <em class="parameter"><code>font</code></em>. If you only want to determinewhether the font has the glyph, use <a href="PangoFcFont.html#pango-fc-font-has-char"><code class="function">pango_fc_font_has_char()</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="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>wc</code></em> :</span></td><td> Unicode character to look up</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the glyph index, or 0, if the Unicode character doesn't exist in the font.</td></tr></tbody></table></div><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2921279"></a><h3><a name="pango-fc-font-get-unknown-glyph"></a>pango_fc_font_get_unknown_glyph ()</h3><a class="indexterm" name="id2921295"></a><a class="indexterm" name="id2921303"></a><pre class="programlisting"><a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> pango_fc_font_get_unknown_glyph (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</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_fc_font_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="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</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><p>Since 1.4</p></div><hr><div class="refsect2" lang="en"><a name="id2921436"></a><h3><a name="pango-fc-font-kern-glyphs"></a>pango_fc_font_kern_glyphs ()</h3><a class="indexterm" name="id2921452"></a><pre class="programlisting">void pango_fc_font_kern_glyphs (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs);</pre><p>Adjust each adjacent pair of glyphs in <em class="parameter"><code>glyphs</code></em> according tokerning information in <em class="parameter"><code>font</code></em>.</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="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></td><td> a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a></td></tr></tbody></table></div><p>Since 1.4</p></div></div><div class="refsect1" lang="en"><a name="property_details"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id2921571"></a><h3><a name="PangoFcFont--pattern"></a>The "<code class="literal">pattern</code>" property</h3><a class="indexterm" name="id2921587"></a><pre class="programlisting"> "pattern" <ahref="../glib/glib-Basic-Types.html#gpointer">gpointer</a> : Write / Construct Only</pre><p>The fontconfig pattern for this font.</p></div></div><div class="refsect1" lang="en"><a name="id2921612"></a><h2>See Also</h2><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</span></a></span></td><td><p>The base class for font maps; creating a newFontconfig-based backend involves deriving from both<a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</span></a> and <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a>..</p></td></tr></tbody></table></div><p></p></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -