KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/share/gtk-doc/html/pango/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/share/gtk-doc/html/pango/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">
</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>
                  &#160;|&#160;
                  <a href="#desc" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <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 &#8212; 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);
<a
href="../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,
                                             <a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);
<a
href="../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,
                                             <a
href="../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,
                                             <a
href="../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">

  <a
href="../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>"              <a
href="../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>
PangoFcFont is a base class for font implementation using the
FontConfig 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 creating
new backends. Any backend deriving from this base class will 
take advantage of the wide range of shapers implemented using
FreeType 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="id2892715"></a><h3>
<a name="PangoFcFont-struct"></a>PangoFcFont</h3>
<a class="indexterm" name="id2892727"></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 implementations
using the FontConfig and FreeType libraries and is used in
conjunction with <a href="PangoFcFontMap.html" title="PangoFcFontMap"><span class="type">PangoFcFontMap</span></a>. When deriving from this
class, you need to implement all of its virtual functions
other 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="id2892795"></a><h3>
<a name="PangoFcFontClass"></a>PangoFcFontClass</h3>
<a class="indexterm" name="id2892808"></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>&#160;()</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>&#160;()</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>&#160;()</span></td>
<td> Return <a
href="../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>&#160;()</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>&#160;()</span></td>
<td> Gets the glyph that should be used to
  display an unknown-glyph indication for the specified
  Unicode character.
  May be <a
href="../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>&#160;()</span></td>
<td> Performs any font-specific shutdown code that
  needs to be done when pango_fc_font_map_shutdown is called.
  May be <a
href="../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="id2892976"></a><h3>
<a name="PANGO-RENDER-TYPE-FC:CAPS"></a>PANGO_RENDER_TYPE_FC</h3>
<a class="indexterm" name="id2892989"></a><pre class="programlisting">#define PANGO_RENDER_TYPE_FC "PangoRenderFc"
</pre>
<p>
A string constant used to identify shape engines that work
with the fontconfig based backends. See the <em class="parameter"><code>engine_type</code></em> field
of <a href="pango-Engines.html#PangoEngineInfo"><span class="type">PangoEngineInfo</span></a>.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2893024"></a><h3>
<a name="pango-fc-font-lock-face"></a>pango_fc_font_lock_face ()</h3>
<a class="indexterm" name="id2893040"></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 FT_Face 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">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>font</code></em>&#160;:</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>&#160;:</span></td>
<td> the FreeType FT_Face 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="id2893130"></a><h3>
<a name="pango-fc-font-unlock-face"></a>pango_fc_font_unlock_face ()</h3>
<a class="indexterm" name="id2893146"></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>&#160;:</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="id2893218"></a><h3>
<a name="pango-fc-font-has-char"></a>pango_fc_font_has_char ()</h3>
<a class="indexterm" name="id2893234"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_fc_font_has_char          (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font,
                                             <a
href="../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>&#160;:</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>&#160;:</span></td>
<td> Unicode codepoint to look up
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../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="id2893356"></a><h3>
<a name="pango-fc-font-get-glyph"></a>pango_fc_font_get_glyph ()</h3>
<a class="indexterm" name="id2893372"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>       pango_fc_font_get_glyph         (<a href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a> *font,
                                             <a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> wc);</pre>
<p>
Gets the glyph index for a given Unicode character
for <em class="parameter"><code>font</code></em>. If you only want to determine
whether 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>&#160;:</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>&#160;:</span></td>
<td> Unicode character to look up
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</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="id2893485"></a><h3>
<a name="pango-fc-font-get-unknown-glyph"></a>pango_fc_font_get_unknown_glyph ()</h3>
<a class="indexterm" name="id2893501"></a><a class="indexterm" name="id2893510"></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,
                                             <a
href="../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 an
unknown 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>&#160;:</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>&#160;:</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>&#160;:</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="id2893642"></a><h3>
<a name="pango-fc-font-kern-glyphs"></a>pango_fc_font_kern_glyphs ()</h3>
<a class="indexterm" name="id2893658"></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 to
kerning 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>&#160;:</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>&#160;:</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="id2893778"></a><h3>
<a name="PangoFcFont--pattern"></a>The "<code class="literal">pattern</code>" property</h3>
<a class="indexterm" name="id2893794"></a><pre class="programlisting">  "pattern"              <a
href="../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="id2893818"></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 new
Fontconfig-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>

Anon7 - 2021