~reviczky/luatex/texlive-bin-git

« back to all changes in this revision

Viewing changes to libs/freetype2/freetype-2.5.3/docs/reference/ft2-incremental.html

  • Committer: Adam Reviczky
  • Date: 2015-04-26 22:40:47 UTC
  • Revision ID: adam.reviczky@kclalumni.net-20150426224047-i2p26n3wqphupq6z
TeX Live 2015 import (rev. 37052)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
 
"http://www.w3.org/TR/html4/loose.dtd">
3
 
<html>
4
 
<head>
5
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
 
<title>FreeType-2.5.3 API Reference</title>
7
 
<style type="text/css">
8
 
  body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
9
 
         color: #000000;
10
 
         background: #FFFFFF; }
11
 
 
12
 
  p { text-align: justify; }
13
 
  h1 { text-align: center; }
14
 
  li { text-align: justify; }
15
 
  td { padding: 0 0.5em 0 0.5em; }
16
 
  td.left { padding: 0 0.5em 0 0.5em;
17
 
            text-align: left; }
18
 
 
19
 
  a:link { color: #0000EF; }
20
 
  a:visited { color: #51188E; }
21
 
  a:hover { color: #FF0000; }
22
 
 
23
 
  span.keyword { font-family: monospace;
24
 
                 text-align: left;
25
 
                 white-space: pre;
26
 
                 color: darkblue; }
27
 
 
28
 
  pre.colored { color: blue; }
29
 
 
30
 
  ul.empty { list-style-type: none; }
31
 
</style>
32
 
</head>
33
 
<body>
34
 
 
35
 
<table align=center><tr><td><font size=-1>[<a href="ft2-index.html">Index</a>]</font></td>
36
 
<td width="100%"></td>
37
 
<td><font size=-1>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
38
 
<center><h1>FreeType-2.5.3 API Reference</h1></center>
39
 
 
40
 
<center><h1>
41
 
Incremental Loading
42
 
</h1></center>
43
 
<h2>Synopsis</h2>
44
 
<table align=center cellspacing=5 cellpadding=0 border=0>
45
 
<tr><td></td><td><a href="#FT_Incremental">FT_Incremental</a></td><td></td><td><a href="#FT_Incremental_GetGlyphMetricsFunc">FT_Incremental_GetGlyphMetricsFunc</a></td></tr>
46
 
<tr><td></td><td><a href="#FT_Incremental_MetricsRec">FT_Incremental_MetricsRec</a></td><td></td><td><a href="#FT_Incremental_FuncsRec">FT_Incremental_FuncsRec</a></td></tr>
47
 
<tr><td></td><td><a href="#FT_Incremental_Metrics">FT_Incremental_Metrics</a></td><td></td><td><a href="#FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a></td></tr>
48
 
<tr><td></td><td><a href="#FT_Incremental_GetGlyphDataFunc">FT_Incremental_GetGlyphDataFunc</a></td><td></td><td><a href="#FT_Incremental_Interface">FT_Incremental_Interface</a></td></tr>
49
 
<tr><td></td><td><a href="#FT_Incremental_FreeGlyphDataFunc">FT_Incremental_FreeGlyphDataFunc</a></td><td></td><td><a href="#FT_PARAM_TAG_INCREMENTAL">FT_PARAM_TAG_INCREMENTAL</a></td></tr>
50
 
</table><br><br>
51
 
 
52
 
<table align=center width="87%"><tr><td>
53
 
<p>This section contains various functions used to perform so-called &lsquo;incremental&rsquo; glyph loading. This is a mode where all glyphs loaded from a given <a href="ft2-base_interface.html#FT_Face">FT_Face</a> are provided by the client application,</p>
54
 
<p>Apart from that, all other tables are loaded normally from the font file. This mode is useful when FreeType is used within another engine, e.g., a PostScript Imaging Processor.</p>
55
 
<p>To enable this mode, you must use <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a>, passing an <a href="ft2-base_interface.html#FT_Parameter">FT_Parameter</a> with the <a href="ft2-incremental.html#FT_PARAM_TAG_INCREMENTAL">FT_PARAM_TAG_INCREMENTAL</a> tag and an <a href="ft2-incremental.html#FT_Incremental_Interface">FT_Incremental_Interface</a> value. See the comments for <a href="ft2-incremental.html#FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a> for an example.</p>
56
 
</td></tr></table><br>
57
 
<table align=center width="75%"><tr><td>
58
 
<h4><a name="FT_Incremental">FT_Incremental</a></h4>
59
 
<table align=center width="87%"><tr><td>
60
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
61
 
</td></tr></table><br>
62
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
63
 
 
64
 
  <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_IncrementalRec_*  <b>FT_Incremental</b>;
65
 
 
66
 
</pre></table><br>
67
 
<table align=center width="87%"><tr><td>
68
 
<p>An opaque type describing a user-provided object used to implement &lsquo;incremental&rsquo; glyph loading within FreeType. This is used to support embedded fonts in certain environments (e.g., PostScript interpreters), where the glyph data isn't in the font file, or must be overridden by different values.</p>
69
 
</td></tr></table><br>
70
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
71
 
<p>It is up to client applications to create and implement <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a> objects, as long as they provide implementations for the methods <a href="ft2-incremental.html#FT_Incremental_GetGlyphDataFunc">FT_Incremental_GetGlyphDataFunc</a>, <a href="ft2-incremental.html#FT_Incremental_FreeGlyphDataFunc">FT_Incremental_FreeGlyphDataFunc</a> and <a href="ft2-incremental.html#FT_Incremental_GetGlyphMetricsFunc">FT_Incremental_GetGlyphMetricsFunc</a>.</p>
72
 
<p>See the description of <a href="ft2-incremental.html#FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a> to understand how to use incremental objects with FreeType.</p>
73
 
</td></tr></table>
74
 
</td></tr></table>
75
 
<hr width="75%">
76
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
77
 
<td width="100%"></td>
78
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
79
 
 
80
 
<table align=center width="75%"><tr><td>
81
 
<h4><a name="FT_Incremental_MetricsRec">FT_Incremental_MetricsRec</a></h4>
82
 
<table align=center width="87%"><tr><td>
83
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
84
 
</td></tr></table><br>
85
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
86
 
 
87
 
  <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Incremental_MetricsRec_
88
 
  {
89
 
    <a href="ft2-basic_types.html#FT_Long">FT_Long</a>  bearing_x;
90
 
    <a href="ft2-basic_types.html#FT_Long">FT_Long</a>  bearing_y;
91
 
    <a href="ft2-basic_types.html#FT_Long">FT_Long</a>  advance;
92
 
    <a href="ft2-basic_types.html#FT_Long">FT_Long</a>  advance_v;     /* since 2.3.12 */
93
 
 
94
 
  } <b>FT_Incremental_MetricsRec</b>;
95
 
 
96
 
</pre></table><br>
97
 
<table align=center width="87%"><tr><td>
98
 
<p>A small structure used to contain the basic glyph metrics returned by the <a href="ft2-incremental.html#FT_Incremental_GetGlyphMetricsFunc">FT_Incremental_GetGlyphMetricsFunc</a> method.</p>
99
 
</td></tr></table><br>
100
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
101
 
<p></p>
102
 
<table cellpadding=3 border=0>
103
 
<tr valign=top><td><b>bearing_x</b></td><td>
104
 
<p>Left bearing, in font units.</p>
105
 
</td></tr>
106
 
<tr valign=top><td><b>bearing_y</b></td><td>
107
 
<p>Top bearing, in font units.</p>
108
 
</td></tr>
109
 
<tr valign=top><td><b>advance</b></td><td>
110
 
<p>Horizontal component of glyph advance, in font units.</p>
111
 
</td></tr>
112
 
<tr valign=top><td><b>advance_v</b></td><td>
113
 
<p>Vertical component of glyph advance, in font units.</p>
114
 
</td></tr>
115
 
</table>
116
 
</td></tr></table>
117
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
118
 
<p>These correspond to horizontal or vertical metrics depending on the value of the &lsquo;vertical&rsquo; argument to the function <a href="ft2-incremental.html#FT_Incremental_GetGlyphMetricsFunc">FT_Incremental_GetGlyphMetricsFunc</a>.</p>
119
 
</td></tr></table>
120
 
</td></tr></table>
121
 
<hr width="75%">
122
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
123
 
<td width="100%"></td>
124
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
125
 
 
126
 
<table align=center width="75%"><tr><td>
127
 
<h4><a name="FT_Incremental_Metrics">FT_Incremental_Metrics</a></h4>
128
 
<table align=center width="87%"><tr><td>
129
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
130
 
</td></tr></table><br>
131
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
132
 
 
133
 
   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Incremental_MetricsRec_*  <b>FT_Incremental_Metrics</b>;
134
 
 
135
 
</pre></table><br>
136
 
<table align=center width="87%"><tr><td>
137
 
<p>A handle to an <a href="ft2-incremental.html#FT_Incremental_MetricsRec">FT_Incremental_MetricsRec</a> structure.</p>
138
 
</td></tr></table><br>
139
 
</td></tr></table>
140
 
<hr width="75%">
141
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
142
 
<td width="100%"></td>
143
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
144
 
 
145
 
<table align=center width="75%"><tr><td>
146
 
<h4><a name="FT_Incremental_GetGlyphDataFunc">FT_Incremental_GetGlyphDataFunc</a></h4>
147
 
<table align=center width="87%"><tr><td>
148
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
149
 
</td></tr></table><br>
150
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
151
 
 
152
 
  <span class="keyword">typedef</span> <a href="ft2-basic_types.html#FT_Error">FT_Error</a>
153
 
  (*<b>FT_Incremental_GetGlyphDataFunc</b>)( <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a>  incremental,
154
 
                                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>         glyph_index,
155
 
                                      <a href="ft2-basic_types.html#FT_Data">FT_Data</a>*        adata );
156
 
 
157
 
</pre></table><br>
158
 
<table align=center width="87%"><tr><td>
159
 
<p>A function called by FreeType to access a given glyph's data bytes during <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> or <a href="ft2-base_interface.html#FT_Load_Char">FT_Load_Char</a> if incremental loading is enabled.</p>
160
 
<p>Note that the format of the glyph's data bytes depends on the font file format. For TrueType, it must correspond to the raw bytes within the &lsquo;glyf&rsquo; table. For PostScript formats, it must correspond to the <b>unencrypted</b> charstring bytes, without any &lsquo;lenIV&rsquo; header. It is undefined for any other format.</p>
161
 
</td></tr></table><br>
162
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
163
 
<p></p>
164
 
<table cellpadding=3 border=0>
165
 
<tr valign=top><td><b>incremental</b></td><td>
166
 
<p>Handle to an opaque <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a> handle provided by the client application.</p>
167
 
</td></tr>
168
 
<tr valign=top><td><b>glyph_index</b></td><td>
169
 
<p>Index of relevant glyph.</p>
170
 
</td></tr>
171
 
</table>
172
 
</td></tr></table>
173
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
174
 
<p></p>
175
 
<table cellpadding=3 border=0>
176
 
<tr valign=top><td><b>adata</b></td><td>
177
 
<p>A structure describing the returned glyph data bytes (which will be accessed as a read-only byte block).</p>
178
 
</td></tr>
179
 
</table>
180
 
</td></tr></table>
181
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
182
 
<p>FreeType error code. 0&nbsp;means success.</p>
183
 
</td></tr></table>
184
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
185
 
<p>If this function returns successfully the method <a href="ft2-incremental.html#FT_Incremental_FreeGlyphDataFunc">FT_Incremental_FreeGlyphDataFunc</a> will be called later to release the data bytes.</p>
186
 
<p>Nested calls to <a href="ft2-incremental.html#FT_Incremental_GetGlyphDataFunc">FT_Incremental_GetGlyphDataFunc</a> can happen for compound glyphs.</p>
187
 
</td></tr></table>
188
 
</td></tr></table>
189
 
<hr width="75%">
190
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
191
 
<td width="100%"></td>
192
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
193
 
 
194
 
<table align=center width="75%"><tr><td>
195
 
<h4><a name="FT_Incremental_FreeGlyphDataFunc">FT_Incremental_FreeGlyphDataFunc</a></h4>
196
 
<table align=center width="87%"><tr><td>
197
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
198
 
</td></tr></table><br>
199
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
200
 
 
201
 
  <span class="keyword">typedef</span> <span class="keyword">void</span>
202
 
  (*<b>FT_Incremental_FreeGlyphDataFunc</b>)( <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a>  incremental,
203
 
                                       <a href="ft2-basic_types.html#FT_Data">FT_Data</a>*        data );
204
 
 
205
 
</pre></table><br>
206
 
<table align=center width="87%"><tr><td>
207
 
<p>A function used to release the glyph data bytes returned by a successful call to <a href="ft2-incremental.html#FT_Incremental_GetGlyphDataFunc">FT_Incremental_GetGlyphDataFunc</a>.</p>
208
 
</td></tr></table><br>
209
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
210
 
<p></p>
211
 
<table cellpadding=3 border=0>
212
 
<tr valign=top><td><b>incremental</b></td><td>
213
 
<p>A handle to an opaque <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a> handle provided by the client application.</p>
214
 
</td></tr>
215
 
<tr valign=top><td><b>data</b></td><td>
216
 
<p>A structure describing the glyph data bytes (which will be accessed as a read-only byte block).</p>
217
 
</td></tr>
218
 
</table>
219
 
</td></tr></table>
220
 
</td></tr></table>
221
 
<hr width="75%">
222
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
223
 
<td width="100%"></td>
224
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
225
 
 
226
 
<table align=center width="75%"><tr><td>
227
 
<h4><a name="FT_Incremental_GetGlyphMetricsFunc">FT_Incremental_GetGlyphMetricsFunc</a></h4>
228
 
<table align=center width="87%"><tr><td>
229
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
230
 
</td></tr></table><br>
231
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
232
 
 
233
 
  <span class="keyword">typedef</span> <a href="ft2-basic_types.html#FT_Error">FT_Error</a>
234
 
  (*<b>FT_Incremental_GetGlyphMetricsFunc</b>)
235
 
                      ( <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a>              incremental,
236
 
                        <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>                     glyph_index,
237
 
                        <a href="ft2-basic_types.html#FT_Bool">FT_Bool</a>                     vertical,
238
 
                        <a href="ft2-incremental.html#FT_Incremental_MetricsRec">FT_Incremental_MetricsRec</a>  *ametrics );
239
 
 
240
 
</pre></table><br>
241
 
<table align=center width="87%"><tr><td>
242
 
<p>A function used to retrieve the basic metrics of a given glyph index before accessing its data. This is necessary because, in certain formats like TrueType, the metrics are stored in a different place from the glyph images proper.</p>
243
 
</td></tr></table><br>
244
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
245
 
<p></p>
246
 
<table cellpadding=3 border=0>
247
 
<tr valign=top><td><b>incremental</b></td><td>
248
 
<p>A handle to an opaque <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a> handle provided by the client application.</p>
249
 
</td></tr>
250
 
<tr valign=top><td><b>glyph_index</b></td><td>
251
 
<p>Index of relevant glyph.</p>
252
 
</td></tr>
253
 
<tr valign=top><td><b>vertical</b></td><td>
254
 
<p>If true, return vertical metrics.</p>
255
 
</td></tr>
256
 
<tr valign=top><td><b>ametrics</b></td><td>
257
 
<p>This parameter is used for both input and output. The original glyph metrics, if any, in font units. If metrics are not available all the values must be set to zero.</p>
258
 
</td></tr>
259
 
</table>
260
 
</td></tr></table>
261
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
262
 
<p></p>
263
 
<table cellpadding=3 border=0>
264
 
<tr valign=top><td><b>ametrics</b></td><td>
265
 
<p>The replacement glyph metrics in font units.</p>
266
 
</td></tr>
267
 
</table>
268
 
</td></tr></table>
269
 
</td></tr></table>
270
 
<hr width="75%">
271
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
272
 
<td width="100%"></td>
273
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
274
 
 
275
 
<table align=center width="75%"><tr><td>
276
 
<h4><a name="FT_Incremental_FuncsRec">FT_Incremental_FuncsRec</a></h4>
277
 
<table align=center width="87%"><tr><td>
278
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
279
 
</td></tr></table><br>
280
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
281
 
 
282
 
  <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Incremental_FuncsRec_
283
 
  {
284
 
    <a href="ft2-incremental.html#FT_Incremental_GetGlyphDataFunc">FT_Incremental_GetGlyphDataFunc</a>     get_glyph_data;
285
 
    <a href="ft2-incremental.html#FT_Incremental_FreeGlyphDataFunc">FT_Incremental_FreeGlyphDataFunc</a>    free_glyph_data;
286
 
    <a href="ft2-incremental.html#FT_Incremental_GetGlyphMetricsFunc">FT_Incremental_GetGlyphMetricsFunc</a>  get_glyph_metrics;
287
 
 
288
 
  } <b>FT_Incremental_FuncsRec</b>;
289
 
 
290
 
</pre></table><br>
291
 
<table align=center width="87%"><tr><td>
292
 
<p>A table of functions for accessing fonts that load data incrementally. Used in <a href="ft2-incremental.html#FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a>.</p>
293
 
</td></tr></table><br>
294
 
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
295
 
<p></p>
296
 
<table cellpadding=3 border=0>
297
 
<tr valign=top><td><b>get_glyph_data</b></td><td>
298
 
<p>The function to get glyph data. Must not be null.</p>
299
 
</td></tr>
300
 
<tr valign=top><td><b>free_glyph_data</b></td><td>
301
 
<p>The function to release glyph data. Must not be null.</p>
302
 
</td></tr>
303
 
<tr valign=top><td><b>get_glyph_metrics</b></td><td>
304
 
<p>The function to get glyph metrics. May be null if the font does not provide overriding glyph metrics.</p>
305
 
</td></tr>
306
 
</table>
307
 
</td></tr></table>
308
 
</td></tr></table>
309
 
<hr width="75%">
310
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
311
 
<td width="100%"></td>
312
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
313
 
 
314
 
<table align=center width="75%"><tr><td>
315
 
<h4><a name="FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a></h4>
316
 
<table align=center width="87%"><tr><td>
317
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
318
 
</td></tr></table><br>
319
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
320
 
 
321
 
  <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Incremental_InterfaceRec_
322
 
  {
323
 
    <span class="keyword">const</span> <a href="ft2-incremental.html#FT_Incremental_FuncsRec">FT_Incremental_FuncsRec</a>*  funcs;
324
 
    <a href="ft2-incremental.html#FT_Incremental">FT_Incremental</a>                  object;
325
 
 
326
 
  } <b>FT_Incremental_InterfaceRec</b>;
327
 
 
328
 
</pre></table><br>
329
 
<table align=center width="87%"><tr><td>
330
 
<p>A structure to be used with <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> to indicate that the user wants to support incremental glyph loading. You should use it with <a href="ft2-incremental.html#FT_PARAM_TAG_INCREMENTAL">FT_PARAM_TAG_INCREMENTAL</a> as in the following example:</p>
331
 
<pre class="colored">
332
 
  FT_Incremental_InterfaceRec  inc_int;
333
 
  FT_Parameter                 parameter;
334
 
  FT_Open_Args                 open_args;
335
 
 
336
 
 
337
 
  // set up incremental descriptor
338
 
  inc_int.funcs  = my_funcs;
339
 
  inc_int.object = my_object;
340
 
 
341
 
  // set up optional parameter
342
 
  parameter.tag  = FT_PARAM_TAG_INCREMENTAL;
343
 
  parameter.data = &amp;inc_int;
344
 
 
345
 
  // set up FT_Open_Args structure
346
 
  open_args.flags      = FT_OPEN_PATHNAME | FT_OPEN_PARAMS;
347
 
  open_args.pathname   = my_font_pathname;
348
 
  open_args.num_params = 1;
349
 
  open_args.params     = &amp;parameter; // we use one optional argument
350
 
 
351
 
  // open the font
352
 
  error = FT_Open_Face( library, &amp;open_args, index, &amp;face );
353
 
  ...
354
 
</pre>
355
 
</td></tr></table><br>
356
 
</td></tr></table>
357
 
<hr width="75%">
358
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
359
 
<td width="100%"></td>
360
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
361
 
 
362
 
<table align=center width="75%"><tr><td>
363
 
<h4><a name="FT_Incremental_Interface">FT_Incremental_Interface</a></h4>
364
 
<table align=center width="87%"><tr><td>
365
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
366
 
</td></tr></table><br>
367
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
368
 
 
369
 
  <span class="keyword">typedef</span> <a href="ft2-incremental.html#FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a>*   <b>FT_Incremental_Interface</b>;
370
 
 
371
 
</pre></table><br>
372
 
<table align=center width="87%"><tr><td>
373
 
<p>A pointer to an <a href="ft2-incremental.html#FT_Incremental_InterfaceRec">FT_Incremental_InterfaceRec</a> structure.</p>
374
 
</td></tr></table><br>
375
 
</td></tr></table>
376
 
<hr width="75%">
377
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
378
 
<td width="100%"></td>
379
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
380
 
 
381
 
<table align=center width="75%"><tr><td>
382
 
<h4><a name="FT_PARAM_TAG_INCREMENTAL">FT_PARAM_TAG_INCREMENTAL</a></h4>
383
 
<table align=center width="87%"><tr><td>
384
 
Defined in FT_INCREMENTAL_H (ftincrem.h).
385
 
</td></tr></table><br>
386
 
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
387
 
 
388
 
#define <b>FT_PARAM_TAG_INCREMENTAL</b>  <a href="ft2-basic_types.html#FT_MAKE_TAG">FT_MAKE_TAG</a>( 'i', 'n', 'c', 'r' )
389
 
 
390
 
</pre></table><br>
391
 
<table align=center width="87%"><tr><td>
392
 
<p>A constant used as the tag of <a href="ft2-base_interface.html#FT_Parameter">FT_Parameter</a> structures to indicate an incremental loading object to be used by FreeType.</p>
393
 
</td></tr></table><br>
394
 
</td></tr></table>
395
 
<hr width="75%">
396
 
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
397
 
<td width="100%"></td>
398
 
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
399
 
 
400
 
</body>
401
 
</html>