📄 pangofcfont.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>PangoFcFont</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"><link rel="start" href="index.html" title="Pango Reference Manual"><link rel="up" href="lowlevel.html" title="Low Level Functionality"><link rel="prev" href="PangoFcFontMap.html" title="PangoFcFontMap"><link rel="next" href="PangoFcDecoder.html" title="PangoFcDecoder"><meta name="generator" content="GTK-Doc V1.6 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="pango.html" title="Basic Pango Interfaces"><link rel="chapter" href="rendering.html" title="Rendering with Pango"><link rel="chapter" href="lowlevel.html" title="Low Level Functionality"><link rel="chapter" href="tools.html" title="Pango Tools"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 1.2"><link rel="index" href="ix04.html" title="Index of new symbols in 1.4"><link rel="index" href="ix05.html" title="Index of new symbols in 1.6"><link rel="index" href="ix06.html" title="Index of new symbols in 1.8"><link rel="index" href="ix07.html" title="Index of new symbols in 1.10"><link rel="index" href="ix08.html" title="Index of new symbols in 1.12"><link rel="index" href="ix09.html" title="Index of new symbols in 1.14"><link rel="index" href="ix10.html" title="Index of new symbols in 1.16"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="PangoFcFontMap.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="lowlevel.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">Pango Reference Manual</th><td><a accesskey="n" href="PangoFcDecoder.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>  |  <a href="#desc" class="shortcut">Description</a>  |  <a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>  |  <a href="#properties" class="shortcut">Properties</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="PangoFcFont"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle"><a name="top_of_page"></a>PangoFcFont</span></h2><p>PangoFcFont — Base font class for Fontconfig-based backends</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><a name="synopsis"></a><h2>Synopsis</h2><pre class="synopsis"> <a href="PangoFcFont.html#PangoFcFont-struct">PangoFcFont</a>; <a href="PangoFcFont.html#PangoFcFontClass">PangoFcFontClass</a>;#define <a href="PangoFcFont.html#PANGO-RENDER-TYPE-FC:CAPS">PANGO_RENDER_TYPE_FC</a>FT_Face <a href="PangoFcFont.html#pango-fc-font-lock-face">pango_fc_font_lock_face</a> (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font);void <a href="PangoFcFont.html#pango-fc-font-unlock-face">pango_fc_font_unlock_face</a> (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font);<ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> <a href="PangoFcFont.html#pango-fc-font-has-char">pango_fc_font_has_char</a> (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);<ahref="../glib/glib-Basic-Types.html#guint">guint</a> <a href="PangoFcFont.html#pango-fc-font-get-glyph">pango_fc_font_get_glyph</a> (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);<a href="pango-Glyph-Storage.html#PangoGlyph">PangoGlyph</a> <a href="PangoFcFont.html#pango-fc-font-get-unknown-glyph">pango_fc_font_get_unknown_glyph</a> (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <ahref="../glib/glib-Unicode-Manipulation.html#gunichar">gunichar</a> wc);void <a href="PangoFcFont.html#pango-fc-font-kern-glyphs">pango_fc_font_kern_glyphs</a> (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font, <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs);</pre></div><div class="refsect1" lang="en"><a name="object_hierarchy"></a><h2>Object Hierarchy</h2><pre class="synopsis"> <ahref="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> +----<a href="pango-Fonts.html#PangoFont">PangoFont</a> +----PangoFcFont +----<a href="pango-Xft-Fonts-and-Rendering.html#PangoXftFont">PangoXftFont</a></pre></div><div class="refsect1" lang="en"><a name="properties"></a><h2>Properties</h2><pre class="synopsis"> "<a href="PangoFcFont.html#PangoFcFont--pattern">pattern</a>" <ahref="../glib/glib-Basic-Types.html#gpointer">gpointer</a> : Write / Construct Only</pre></div><div class="refsect1" lang="en"><a name="desc"></a><h2>Description</h2><p><a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> is a base class for font implementation using theFontconfig and FreeType libraries. It is used in the<a href="pango-Xft-Fonts-and-Rendering.html" title="Xft Fonts and Rendering">Xft</a> and<a href="pango-FreeType-Fonts-and-Rendering.html" title="FreeType Fonts and Rendering">FreeType</a>backends shipped with Pango, but can also be used when creatingnew backends. Any backend deriving from this base class will take advantage of the wide range of shapers implemented usingFreeType that come with Pango.</p></div><div class="refsect1" lang="en"><a name="details"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2920502"></a><h3><a name="PangoFcFont-struct"></a>PangoFcFont</h3><a class="indexterm" name="id2920514"></a><pre class="programlisting">typedef struct _PangoFcFont PangoFcFont;</pre><p><a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> is a base class for font implementationsusing the Fontconfig and FreeType libraries and is used inconjunction with <a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</span></a>. When deriving from thisclass, you need to implement all of its virtual functionsother than <code class="function">shutdown()</code> along with the <code class="function">get_glyph_extents()</code>virtual function from <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id2920582"></a><h3><a name="PangoFcFontClass"></a>PangoFcFontClass</h3><a class="indexterm" name="id2920594"></a><pre class="programlisting">typedef struct { FT_Face (*lock_face) (PangoFcFont *font); void (*unlock_face) (PangoFcFont *font); gboolean (*has_char) (PangoFcFont *font, gunichar wc); guint (*get_glyph) (PangoFcFont *font, gunichar wc); PangoGlyph (*get_unknown_glyph) (PangoFcFont *font, gunichar wc); void (*shutdown) (PangoFcFont *font);} PangoFcFontClass;</pre><p>Class structure for <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="structfield"><code>lock_face</code></em> ()</span></td><td> Returns the FT_Face of the font and increases the reference count for the face by one.</td></tr><tr><td><span class="term"><em class="structfield"><code>unlock_face</code></em> ()</span></td><td> Decreases the reference count for the FT_Face of the font by one. When the count is zero, the <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> subclass is allowed to free the FT_Face.</td></tr><tr><td><span class="term"><em class="structfield"><code>has_char</code></em> ()</span></td><td> Return <ahref="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the the font contains a glyph corresponding to the specified character.</td></tr><tr><td><span class="term"><em class="structfield"><code>get_glyph</code></em> ()</span></td><td> Gets the glyph that corresponds to the given Unicode character.</td></tr><tr><td><span class="term"><em class="structfield"><code>get_unknown_glyph</code></em> ()</span></td><td> Gets the glyph that should be used to display an unknown-glyph indication for the specified Unicode character. May be <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr><tr><td><span class="term"><em class="structfield"><code>shutdown</code></em> ()</span></td><td> Performs any font-specific shutdown code that needs to be done when pango_fc_font_map_shutdown is called. May be <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2920763"></a><h3><a name="PANGO-RENDER-TYPE-FC:CAPS"></a>PANGO_RENDER_TYPE_FC</h3><a class="indexterm" name="id2920776"></a><pre class="programlisting">#define PANGO_RENDER_TYPE_FC "PangoRenderFc"</pre><p>A string constant used to identify shape engines that workwith the fontconfig based backends. See the <em class="parameter"><code>engine_type</code></em> fieldof <a href="pango-Engines.html#PangoEngineInfo"><span class="type">PangoEngineInfo</span></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id2920811"></a><h3><a name="pango-fc-font-lock-face"></a>pango_fc_font_lock_face ()</h3><a class="indexterm" name="id2920826"></a><pre class="programlisting">FT_Face pango_fc_font_lock_face (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font);</pre><p>Gets the FreeType <span class="type">FT_Face</span> associated with a font,This face will be kept around until you call<a href="PangoFcFont.html#pango-fc-font-unlock-face"><code class="function">pango_fc_font_unlock_face()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -