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

📄 pangofcfontmap.html

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>PangoFcFontMap</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="pango-PangoRenderer.html" title="PangoRenderer"><link rel="next" href="PangoFcFont.html" title="PangoFcFont"><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="pango-PangoRenderer.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="PangoFcFont.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>                  &#160;|&#160;                  <a href="#desc" class="shortcut">Description</a>                  &#160;|&#160;                  <a href="#object_hierarchy" class="shortcut">Object Hierarchy</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="PangoFcFontMap"></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>PangoFcFontMap</span></h2><p>PangoFcFontMap &#8212; Base fontmap 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="PangoFcFontMap.html#PangoFcFontMap-struct">PangoFcFontMap</a>;            <a href="PangoFcFontMap.html#PangoFcFontMapClass">PangoFcFontMapClass</a>;<a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>* <a href="PangoFcFontMap.html#pango-fc-font-description-from-pattern">pango_fc_font_description_from_pattern</a>                                            (FcPattern *pattern,                                             <ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> include_size);void        <a href="PangoFcFontMap.html#pango-fc-font-map-cache-clear">pango_fc_font_map_cache_clear</a>   (<a href="PangoFcFontMap.html" title="PangoFcFontMap">PangoFcFontMap</a> *fcfontmap);<a href="pango-Text-Processing.html#PangoContext">PangoContext</a>* <a href="PangoFcFontMap.html#pango-fc-font-map-create-context">pango_fc_font_map_create_context</a>                                            (<a href="PangoFcFontMap.html" title="PangoFcFontMap">PangoFcFontMap</a> *fcfontmap);void        <a href="PangoFcFontMap.html#pango-fc-font-map-shutdown">pango_fc_font_map_shutdown</a>      (<a href="PangoFcFontMap.html" title="PangoFcFontMap">PangoFcFontMap</a> *fcfontmap);void        <a href="PangoFcFontMap.html#pango-fc-font-map-add-decoder-find-func">pango_fc_font_map_add_decoder_find_func</a>                                            (<a href="PangoFcFontMap.html" title="PangoFcFontMap">PangoFcFontMap</a> *fcfontmap,                                             <a href="PangoFcFontMap.html#PangoFcDecoderFindFunc">PangoFcDecoderFindFunc</a> findfunc,                                             <ahref="../glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data,                                             <ahref="../glib/glib-Datasets.html#GDestroyNotify">GDestroyNotify</a> dnotify);<a href="PangoFcDecoder.html" title="PangoFcDecoder">PangoFcDecoder</a>* (<a href="PangoFcFontMap.html#PangoFcDecoderFindFunc">*PangoFcDecoderFindFunc</a>)   (FcPattern *pattern,                                             <ahref="../glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data);</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#PangoFontMap">PangoFontMap</a>         +----PangoFcFontMap               +----<a href="pango-FreeType-Fonts-and-Rendering.html#PangoFT2FontMap">PangoFT2FontMap</a></pre></div><div class="refsect1" lang="en"><a name="desc"></a><h2>Description</h2><p>PangoFcFontMap is a base class for font map implementations 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="id2917062"></a><h3><a name="PangoFcFontMap-struct"></a>PangoFcFontMap</h3><a class="indexterm" name="id2917074"></a><pre class="programlisting">typedef struct _PangoFcFontMap PangoFcFontMap;</pre><p><a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</span></a> is a base class for font map implementationsusing the Fontconfig and FreeType libraries. To create a newbackend using Fontconfig and FreeType, you derive from this classand implement a <code class="function">new_font()</code> virtual function that creates aninstance deriving from <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id2917123"></a><h3><a name="PangoFcFontMapClass"></a>PangoFcFontMapClass</h3><a class="indexterm" name="id2917136"></a><pre class="programlisting">typedef struct {  /* Deprecated in favor of context_substitute */  void         (*default_substitute) (PangoFcFontMap   *fontmap,				      FcPattern        *pattern);  /* Deprecated in favor of create_font */  PangoFcFont  *(*new_font)          (PangoFcFontMap  *fontmap,				      FcPattern       *pattern);  double       (*get_resolution)     (PangoFcFontMap             *fcfontmap,				      PangoContext               *context);  gconstpointer (*context_key_get)   (PangoFcFontMap             *fcfontmap,				      PangoContext               *context);  gpointer     (*context_key_copy)   (PangoFcFontMap             *fcfontmap,				      gconstpointer               key);  void         (*context_key_free)   (PangoFcFontMap             *fcfontmap,				      gpointer                    key);  guint32      (*context_key_hash)   (PangoFcFontMap             *fcfontmap,				      gconstpointer               key);  gboolean     (*context_key_equal)  (PangoFcFontMap             *fcfontmap,				      gconstpointer               key_a,				      gconstpointer               key_b);  void         (*context_substitute) (PangoFcFontMap             *fontmap,				      PangoContext               *context,				      FcPattern                  *pattern);  PangoFcFont  *(*create_font)       (PangoFcFontMap             *fontmap,				      PangoContext               *context,				      const PangoFontDescription *desc,				      FcPattern                  *pattern);} PangoFcFontMapClass;</pre><p>Class structure for <a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</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>default_substitute</code></em>&#160;()</span></td><td> Substitutes in default values for unspecified fields in a <span class="type">FcPattern</span>. This will be called prior to creating a font for the pattern. May be <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Deprecated in favor of @<code class="function">context_substitute()</code>.</td></tr><tr><td><span class="term"><em class="structfield"><code>new_font</code></em>&#160;()</span></td><td> Creates a new <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> for the specified pattern of the appropriate type for this font map. The <em class="parameter"><code>pattern</code></em> argument must be passed to the "pattern" property of <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> when you call <ahref="../gobject/gobject-The-Base-Object-Type.html#g-object-new"><code class="function">g_object_new()</code></a>. Deprecated in favor of @<code class="function">create_font()</code>.</td></tr><tr><td><span class="term"><em class="structfield"><code>get_resolution</code></em>&#160;()</span></td><td> Gets the resolution (the scale factor between logical and absolute font sizes) that the backend will use for a particular fontmap and context. <em class="parameter"><code>context</code></em> may be null.</td></tr><tr><td><span class="term"><em class="structfield"><code>context_key_get</code></em>&#160;()</span></td><td> Gets an opaque key holding backend specific options for the context that will affect fonts created by <code class="function">create_font()</code>. The result must point to persistant storage owned by the fontmap. This key is used to index hash tables used to look up fontsets and fonts.</td></tr><tr><td><span class="term"><em class="structfield"><code>context_key_copy</code></em>&#160;()</span></td><td> Copies a context key. Pango uses this to make a persistant copy of the value returned from <em class="parameter"><code>context_key_get</code></em>.</td></tr><tr><td><span class="term"><em class="structfield"><code>context_key_free</code></em>&#160;()</span></td><td> Frees a context key copied with <em class="parameter"><code>context_key_copy</code></em>.</td></tr><tr><td><span class="term"><em class="structfield"><code>context_key_hash</code></em>&#160;()</span></td><td> Gets a hash value for a context key</td></tr><tr><td><span class="term"><em class="structfield"><code>context_key_equal</code></em>&#160;()</span></td><td> Compares two context keys for equality.</td></tr><tr><td><span class="term"><em class="structfield"><code>context_substitute</code></em>&#160;()</span></td><td> Substitutes in default values for unspecified fields in a <span class="type">FcPattern</span>. This will be called prior to creating a font for the pattern. 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>create_font</code></em>&#160;()</span></td><td> Creates a new <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> for the specified pattern of the appropriate type for this font map using information from the context that is passed in. The <em class="parameter"><code>pattern</code></em> argument must be passed to the "pattern" property of <a href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> when you call <ahref="../gobject/gobject-The-Base-Object-Type.html#g-object-new"><code class="function">g_object_new()</code></a>. Deprecated in favor of @<code class="function">create_font()</code>. If <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <code class="function">new_font()</code> is used.</td></tr>

⌨️ 快捷键说明

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