8
8
<link rel="up" href="lowlevel.html" title="Low Level Functionality">
9
9
<link rel="prev" href="PangoFcFont.html" title="PangoFcFont">
10
10
<link rel="next" href="pango-OpenType-Font-Handling.html" title="OpenType Font Handling">
11
<meta name="generator" content="GTK-Doc V1.13 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="pango.html" title="Basic Pango Interfaces">
14
<link rel="chapter" href="rendering.html" title="Rendering with Pango">
15
<link rel="chapter" href="lowlevel.html" title="Low Level Functionality">
16
<link rel="chapter" href="tools.html" title="Pango Tools">
17
<link rel="chapter" href="pango-hierarchy.html" title="Object Hierarchy">
18
<link rel="index" href="index-all.html" title="Index">
19
<link rel="index" href="index-deprecated.html" title="Index of deprecated symbols">
20
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
21
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
22
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
23
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
24
<link rel="index" href="index-1.10.html" title="Index of new symbols in 1.10">
25
<link rel="index" href="index-1.12.html" title="Index of new symbols in 1.12">
26
<link rel="index" href="index-1.14.html" title="Index of new symbols in 1.14">
27
<link rel="index" href="index-1.16.html" title="Index of new symbols in 1.16">
28
<link rel="index" href="index-1.18.html" title="Index of new symbols in 1.18">
29
<link rel="index" href="index-1.20.html" title="Index of new symbols in 1.20">
30
<link rel="index" href="index-1.22.html" title="Index of new symbols in 1.22">
31
<link rel="index" href="index-1.24.html" title="Index of new symbols in 1.24">
32
<link rel="index" href="index-1.26.html" title="Index of new symbols in 1.26">
33
<link rel="index" href="index-1.28.html" title="Index of new symbols in 1.26">
35
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
36
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
59
38
<td valign="top" align="right"></td>
60
39
</tr></table></div>
61
<div class="refsynopsisdiv" title="Synopsis">
40
<div class="refsynopsisdiv">
62
41
<a name="PangoFcDecoder.synopsis"></a><h2>Synopsis</h2>
63
<pre class="synopsis"> <a class="link" href="PangoFcDecoder.html#PangoFcDecoder-struct" title="PangoFcDecoder">PangoFcDecoder</a>;
64
<a class="link" href="PangoFcDecoder.html#PangoFcDecoderClass" title="PangoFcDecoderClass">PangoFcDecoderClass</a>;
65
<span class="returnvalue">FcCharSet</span> * <a class="link" href="PangoFcDecoder.html#pango-fc-decoder-get-charset" title="pango_fc_decoder_get_charset ()">pango_fc_decoder_get_charset</a> (<a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="returnvalue">PangoFcDecoder</span></a> *decoder,
66
<a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="returnvalue">PangoFcFont</span></a> *fcfont);
67
<a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="returnvalue">PangoGlyph</span></a> <a class="link" href="PangoFcDecoder.html#pango-fc-decoder-get-glyph" title="pango_fc_decoder_get_glyph ()">pango_fc_decoder_get_glyph</a> (<a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="returnvalue">PangoFcDecoder</span></a> *decoder,
68
<a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="returnvalue">PangoFcFont</span></a> *fcfont,
69
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> wc);
42
<pre class="synopsis">struct <a class="link" href="PangoFcDecoder.html#PangoFcDecoder-struct" title="struct PangoFcDecoder">PangoFcDecoder</a>;
43
struct <a class="link" href="PangoFcDecoder.html#PangoFcDecoderClass" title="struct PangoFcDecoderClass">PangoFcDecoderClass</a>;
44
<span class="returnvalue">FcCharSet</span> * <a class="link" href="PangoFcDecoder.html#pango-fc-decoder-get-charset" title="pango_fc_decoder_get_charset ()">pango_fc_decoder_get_charset</a> (<em class="parameter"><code><a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a> *decoder</code></em>,
45
<em class="parameter"><code><a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> *fcfont</code></em>);
46
<a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="returnvalue">PangoGlyph</span></a> <a class="link" href="PangoFcDecoder.html#pango-fc-decoder-get-glyph" title="pango_fc_decoder_get_glyph ()">pango_fc_decoder_get_glyph</a> (<em class="parameter"><code><a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a> *decoder</code></em>,
47
<em class="parameter"><code><a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> *fcfont</code></em>,
48
<em class="parameter"><code><span class="type">guint32</span> wc</code></em>);
72
<div class="refsect1" title="Object Hierarchy">
51
<div class="refsect1">
73
52
<a name="PangoFcDecoder.object-hierarchy"></a><h2>Object Hierarchy</h2>
74
53
<pre class="synopsis">
75
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
76
55
+----PangoFcDecoder
79
<div class="refsect1" title="Description">
58
<div class="refsect1">
80
59
<a name="PangoFcDecoder.description"></a><h2>Description</h2>
82
61
PangoFcDecoder represents a decoder that an application provides
83
62
for handling a font that is encoded in a custom way.
86
<div class="refsect1" title="Details">
65
<div class="refsect1">
87
66
<a name="PangoFcDecoder.details"></a><h2>Details</h2>
88
<div class="refsect2" title="PangoFcDecoder">
89
<a name="PangoFcDecoder-struct"></a><h3>PangoFcDecoder</h3>
90
<pre class="programlisting">typedef struct _PangoFcDecoder PangoFcDecoder;</pre>
67
<div class="refsect2">
68
<a name="PangoFcDecoder-struct"></a><h3>struct PangoFcDecoder</h3>
69
<pre class="programlisting">struct PangoFcDecoder;</pre>
92
71
<a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a> is a virtual base class that implementations will
93
72
inherit from. It's the interface that is used to define a custom
97
76
information about the supported charset for a font as well as the
98
77
individual character to glyph conversions. Pango gets that
99
78
information via the <span class="type">get_charset</span> and <span class="type">get_glyph</span> callbacks into your
100
object implementation.</p>
79
object implementation.
101
81
<p class="since">Since 1.6</p>
104
<div class="refsect2" title="PangoFcDecoderClass">
105
<a name="PangoFcDecoderClass"></a><h3>PangoFcDecoderClass</h3>
106
<pre class="programlisting">typedef struct {
84
<div class="refsect2">
85
<a name="PangoFcDecoderClass"></a><h3>struct PangoFcDecoderClass</h3>
86
<pre class="programlisting">struct PangoFcDecoderClass {
107
87
FcCharSet *(*get_charset) (PangoFcDecoder *decoder,
108
88
PangoFcFont *fcfont);
109
89
PangoGlyph (*get_glyph) (PangoFcDecoder *decoder,
110
90
PangoFcFont *fcfont,
112
} PangoFcDecoderClass;
115
Class structure for <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a>.</p>
95
Class structure for <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a>.
116
97
<div class="variablelist"><table border="0">
117
98
<col align="left" valign="top">
120
101
<td><p><span class="term"><em class="structfield"><code><a name="PangoFcDecoderClass.get-charset"></a>get_charset</code></em> ()</span></p></td>
121
<td> This returns an <span class="type">FcCharset</span> given a <a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> that
102
<td>This returns an <span class="type">FcCharset</span> given a <a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> that
122
103
includes a list of supported characters in the font. The
123
104
<span class="type">FcCharSet</span> that is returned should be an internal reference to your
124
105
code. Pango will not free this structure. It is important that
137
118
<p class="since">Since 1.6</p>
140
<div class="refsect2" title="pango_fc_decoder_get_charset ()">
121
<div class="refsect2">
141
122
<a name="pango-fc-decoder-get-charset"></a><h3>pango_fc_decoder_get_charset ()</h3>
142
<pre class="programlisting"><span class="returnvalue">FcCharSet</span> * pango_fc_decoder_get_charset (<a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="returnvalue">PangoFcDecoder</span></a> *decoder,
143
<a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="returnvalue">PangoFcFont</span></a> *fcfont);</pre>
123
<pre class="programlisting"><span class="returnvalue">FcCharSet</span> * pango_fc_decoder_get_charset (<em class="parameter"><code><a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a> *decoder</code></em>,
124
<em class="parameter"><code><a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> *fcfont</code></em>);</pre>
145
126
Generates an <span class="type">FcCharSet</span> of supported characters for the fcfont
146
127
given. The returned <span class="type">FcCharSet</span> will be a reference to an
147
128
internal value stored by the <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a> and must not
148
be modified or freed.</p>
129
be modified or freed.
149
131
<div class="variablelist"><table border="0">
150
132
<col align="left" valign="top">
153
135
<td><p><span class="term"><em class="parameter"><code>decoder</code></em> :</span></p></td>
154
<td> a <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a>
136
<td>a <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a>
158
140
<td><p><span class="term"><em class="parameter"><code>fcfont</code></em> :</span></p></td>
159
<td> the <a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> to query.
141
<td>the <a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> to query.
171
153
<p class="since">Since 1.6</p>
174
<div class="refsect2" title="pango_fc_decoder_get_glyph ()">
156
<div class="refsect2">
175
157
<a name="pango-fc-decoder-get-glyph"></a><h3>pango_fc_decoder_get_glyph ()</h3>
176
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="returnvalue">PangoGlyph</span></a> pango_fc_decoder_get_glyph (<a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="returnvalue">PangoFcDecoder</span></a> *decoder,
177
<a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="returnvalue">PangoFcFont</span></a> *fcfont,
178
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> wc);</pre>
158
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="returnvalue">PangoGlyph</span></a> pango_fc_decoder_get_glyph (<em class="parameter"><code><a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a> *decoder</code></em>,
159
<em class="parameter"><code><a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> *fcfont</code></em>,
160
<em class="parameter"><code><span class="type">guint32</span> wc</code></em>);</pre>
180
162
Generates a <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> for the given Unicode point using the
181
163
custom decoder. For complex scripts where there can be multiple
182
164
glyphs for a single character, the decoder will return whatever
183
165
glyph is most convenient for it. (Usually whatever glyph is directly
184
in the fonts character map table.)</p>
166
in the fonts character map table.)
185
168
<div class="variablelist"><table border="0">
186
169
<col align="left" valign="top">
189
172
<td><p><span class="term"><em class="parameter"><code>decoder</code></em> :</span></p></td>
190
<td> a <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a>
173
<td>a <a class="link" href="PangoFcDecoder.html" title="PangoFcDecoder"><span class="type">PangoFcDecoder</span></a>
194
177
<td><p><span class="term"><em class="parameter"><code>fcfont</code></em> :</span></p></td>
195
<td> a <a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> to query.
178
<td>a <a class="link" href="PangoFcFont.html" title="PangoFcFont"><span class="type">PangoFcFont</span></a> to query.
199
182
<td><p><span class="term"><em class="parameter"><code>wc</code></em> :</span></p></td>
200
<td> the Unicode code point to convert to a single <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a>.
183
<td>the Unicode code point to convert to a single <a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a>.