b9f369523226129cec5ff49e5ae9044c2f2aac93
[platform/upstream/harfbuzz.git] / docs / html / harfbuzz-hb-buffer.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>hb-buffer: HarfBuzz Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="index.html" title="HarfBuzz Manual">
8 <link rel="up" href="ch09.html" title="Core API">
9 <link rel="prev" href="harfbuzz-hb-blob.html" title="hb-blob">
10 <link rel="next" href="harfbuzz-hb-common.html" title="hb-common">
11 <meta name="generator" content="GTK-Doc V1.25 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18                   <a href="#harfbuzz-hb-buffer.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19                   <a href="#harfbuzz-hb-buffer.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20 </td>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22 <td><a accesskey="u" href="ch09.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="harfbuzz-hb-blob.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="harfbuzz-hb-common.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25 </tr></table>
26 <div class="refentry">
27 <a name="harfbuzz-hb-buffer"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
29 <td valign="top">
30 <h2><span class="refentrytitle"><a name="harfbuzz-hb-buffer.top_of_page"></a>hb-buffer</span></h2>
31 <p>hb-buffer — Input and output buffers</p>
32 </td>
33 <td class="gallery_image" valign="top" align="right"></td>
34 </tr></table></div>
35 <div class="refsect1">
36 <a name="harfbuzz-hb-buffer.functions"></a><h2>Functions</h2>
37 <div class="informaltable"><table class="informaltable" width="100%" border="0">
38 <colgroup>
39 <col width="150px" class="functions_return">
40 <col class="functions_name">
41 </colgroup>
42 <tbody>
43 <tr>
44 <td class="function_type">
45 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
46 </td>
47 <td class="function_name">
48 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-create" title="hb_buffer_create ()">hb_buffer_create</a> <span class="c_punctuation">()</span>
49 </td>
50 </tr>
51 <tr>
52 <td class="function_type">
53 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
54 </td>
55 <td class="function_name">
56 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reference" title="hb_buffer_reference ()">hb_buffer_reference</a> <span class="c_punctuation">()</span>
57 </td>
58 </tr>
59 <tr>
60 <td class="function_type">
61 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
62 </td>
63 <td class="function_name">
64 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-empty" title="hb_buffer_get_empty ()">hb_buffer_get_empty</a> <span class="c_punctuation">()</span>
65 </td>
66 </tr>
67 <tr>
68 <td class="function_type">
69 <span class="returnvalue">void</span>
70 </td>
71 <td class="function_name">
72 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-destroy" title="hb_buffer_destroy ()">hb_buffer_destroy</a> <span class="c_punctuation">()</span>
73 </td>
74 </tr>
75 <tr>
76 <td class="function_type">
77 <span class="returnvalue">void</span>
78 </td>
79 <td class="function_name">
80 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reset" title="hb_buffer_reset ()">hb_buffer_reset</a> <span class="c_punctuation">()</span>
81 </td>
82 </tr>
83 <tr>
84 <td class="function_type">
85 <span class="returnvalue">void</span>
86 </td>
87 <td class="function_name">
88 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-clear-contents" title="hb_buffer_clear_contents ()">hb_buffer_clear_contents</a> <span class="c_punctuation">()</span>
89 </td>
90 </tr>
91 <tr>
92 <td class="function_type">
93 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
94 </td>
95 <td class="function_name">
96 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-pre-allocate" title="hb_buffer_pre_allocate ()">hb_buffer_pre_allocate</a> <span class="c_punctuation">()</span>
97 </td>
98 </tr>
99 <tr>
100 <td class="function_type">
101 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
102 </td>
103 <td class="function_name">
104 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-allocation-successful" title="hb_buffer_allocation_successful ()">hb_buffer_allocation_successful</a> <span class="c_punctuation">()</span>
105 </td>
106 </tr>
107 <tr>
108 <td class="function_type">
109 <span class="returnvalue">void</span>
110 </td>
111 <td class="function_name">
112 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add" title="hb_buffer_add ()">hb_buffer_add</a> <span class="c_punctuation">()</span>
113 </td>
114 </tr>
115 <tr>
116 <td class="function_type">
117 <span class="returnvalue">void</span>
118 </td>
119 <td class="function_name">
120 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()">hb_buffer_add_codepoints</a> <span class="c_punctuation">()</span>
121 </td>
122 </tr>
123 <tr>
124 <td class="function_type">
125 <span class="returnvalue">void</span>
126 </td>
127 <td class="function_name">
128 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf32" title="hb_buffer_add_utf32 ()">hb_buffer_add_utf32</a> <span class="c_punctuation">()</span>
129 </td>
130 </tr>
131 <tr>
132 <td class="function_type">
133 <span class="returnvalue">void</span>
134 </td>
135 <td class="function_name">
136 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf16" title="hb_buffer_add_utf16 ()">hb_buffer_add_utf16</a> <span class="c_punctuation">()</span>
137 </td>
138 </tr>
139 <tr>
140 <td class="function_type">
141 <span class="returnvalue">void</span>
142 </td>
143 <td class="function_name">
144 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf8" title="hb_buffer_add_utf8 ()">hb_buffer_add_utf8</a> <span class="c_punctuation">()</span>
145 </td>
146 </tr>
147 <tr>
148 <td class="function_type">
149 <span class="returnvalue">void</span>
150 </td>
151 <td class="function_name">
152 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-latin1" title="hb_buffer_add_latin1 ()">hb_buffer_add_latin1</a> <span class="c_punctuation">()</span>
153 </td>
154 </tr>
155 <tr>
156 <td class="function_type">
157 <span class="returnvalue">void</span>
158 </td>
159 <td class="function_name">
160 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-append" title="hb_buffer_append ()">hb_buffer_append</a> <span class="c_punctuation">()</span>
161 </td>
162 </tr>
163 <tr>
164 <td class="function_type">
165 <span class="returnvalue">void</span>
166 </td>
167 <td class="function_name">
168 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-content-type" title="hb_buffer_set_content_type ()">hb_buffer_set_content_type</a> <span class="c_punctuation">()</span>
169 </td>
170 </tr>
171 <tr>
172 <td class="function_type">
173 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t"><span class="returnvalue">hb_buffer_content_type_t</span></a>
174 </td>
175 <td class="function_name">
176 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-content-type" title="hb_buffer_get_content_type ()">hb_buffer_get_content_type</a> <span class="c_punctuation">()</span>
177 </td>
178 </tr>
179 <tr>
180 <td class="function_type">
181 <span class="returnvalue">void</span>
182 </td>
183 <td class="function_name">
184 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-direction" title="hb_buffer_set_direction ()">hb_buffer_set_direction</a> <span class="c_punctuation">()</span>
185 </td>
186 </tr>
187 <tr>
188 <td class="function_type">
189 <a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
190 </td>
191 <td class="function_name">
192 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-direction" title="hb_buffer_get_direction ()">hb_buffer_get_direction</a> <span class="c_punctuation">()</span>
193 </td>
194 </tr>
195 <tr>
196 <td class="function_type">
197 <span class="returnvalue">void</span>
198 </td>
199 <td class="function_name">
200 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-script" title="hb_buffer_set_script ()">hb_buffer_set_script</a> <span class="c_punctuation">()</span>
201 </td>
202 </tr>
203 <tr>
204 <td class="function_type">
205 <a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
206 </td>
207 <td class="function_name">
208 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-script" title="hb_buffer_get_script ()">hb_buffer_get_script</a> <span class="c_punctuation">()</span>
209 </td>
210 </tr>
211 <tr>
212 <td class="function_type">
213 <span class="returnvalue">void</span>
214 </td>
215 <td class="function_name">
216 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-language" title="hb_buffer_set_language ()">hb_buffer_set_language</a> <span class="c_punctuation">()</span>
217 </td>
218 </tr>
219 <tr>
220 <td class="function_type">
221 <a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="returnvalue">hb_language_t</span></a>
222 </td>
223 <td class="function_name">
224 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-language" title="hb_buffer_get_language ()">hb_buffer_get_language</a> <span class="c_punctuation">()</span>
225 </td>
226 </tr>
227 <tr>
228 <td class="function_type">
229 <span class="returnvalue">void</span>
230 </td>
231 <td class="function_name">
232 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-flags" title="hb_buffer_set_flags ()">hb_buffer_set_flags</a> <span class="c_punctuation">()</span>
233 </td>
234 </tr>
235 <tr>
236 <td class="function_type">
237 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="returnvalue">hb_buffer_flags_t</span></a>
238 </td>
239 <td class="function_name">
240 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-flags" title="hb_buffer_get_flags ()">hb_buffer_get_flags</a> <span class="c_punctuation">()</span>
241 </td>
242 </tr>
243 <tr>
244 <td class="function_type">
245 <span class="returnvalue">void</span>
246 </td>
247 <td class="function_name">
248 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-cluster-level" title="hb_buffer_set_cluster_level ()">hb_buffer_set_cluster_level</a> <span class="c_punctuation">()</span>
249 </td>
250 </tr>
251 <tr>
252 <td class="function_type">
253 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-cluster-level-t" title="enum hb_buffer_cluster_level_t"><span class="returnvalue">hb_buffer_cluster_level_t</span></a>
254 </td>
255 <td class="function_name">
256 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-cluster-level" title="hb_buffer_get_cluster_level ()">hb_buffer_get_cluster_level</a> <span class="c_punctuation">()</span>
257 </td>
258 </tr>
259 <tr>
260 <td class="function_type">
261 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
262 </td>
263 <td class="function_name">
264 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-length" title="hb_buffer_set_length ()">hb_buffer_set_length</a> <span class="c_punctuation">()</span>
265 </td>
266 </tr>
267 <tr>
268 <td class="function_type">unsigned <span class="returnvalue">int</span>
269 </td>
270 <td class="function_name">
271 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-length" title="hb_buffer_get_length ()">hb_buffer_get_length</a> <span class="c_punctuation">()</span>
272 </td>
273 </tr>
274 <tr>
275 <td class="function_type">
276 <span class="returnvalue">void</span>
277 </td>
278 <td class="function_name">
279 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-segment-properties" title="hb_buffer_set_segment_properties ()">hb_buffer_set_segment_properties</a> <span class="c_punctuation">()</span>
280 </td>
281 </tr>
282 <tr>
283 <td class="function_type">
284 <span class="returnvalue">void</span>
285 </td>
286 <td class="function_name">
287 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-segment-properties" title="hb_buffer_get_segment_properties ()">hb_buffer_get_segment_properties</a> <span class="c_punctuation">()</span>
288 </td>
289 </tr>
290 <tr>
291 <td class="function_type">
292 <span class="returnvalue">void</span>
293 </td>
294 <td class="function_name">
295 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties" title="hb_buffer_guess_segment_properties ()">hb_buffer_guess_segment_properties</a> <span class="c_punctuation">()</span>
296 </td>
297 </tr>
298 <tr>
299 <td class="function_type">
300 <span class="returnvalue">void</span>
301 </td>
302 <td class="function_name">
303 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-unicode-funcs" title="hb_buffer_set_unicode_funcs ()">hb_buffer_set_unicode_funcs</a> <span class="c_punctuation">()</span>
304 </td>
305 </tr>
306 <tr>
307 <td class="function_type">
308 <a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
309 </td>
310 <td class="function_name">
311 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-unicode-funcs" title="hb_buffer_get_unicode_funcs ()">hb_buffer_get_unicode_funcs</a> <span class="c_punctuation">()</span>
312 </td>
313 </tr>
314 <tr>
315 <td class="function_type">
316 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
317 </td>
318 <td class="function_name">
319 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-user-data" title="hb_buffer_set_user_data ()">hb_buffer_set_user_data</a> <span class="c_punctuation">()</span>
320 </td>
321 </tr>
322 <tr>
323 <td class="function_type">
324 <span class="returnvalue">void</span> *
325 </td>
326 <td class="function_name">
327 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-user-data" title="hb_buffer_get_user_data ()">hb_buffer_get_user_data</a> <span class="c_punctuation">()</span>
328 </td>
329 </tr>
330 <tr>
331 <td class="function_type">
332 <span class="returnvalue">hb_glyph_info_t</span> *
333 </td>
334 <td class="function_name">
335 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos" title="hb_buffer_get_glyph_infos ()">hb_buffer_get_glyph_infos</a> <span class="c_punctuation">()</span>
336 </td>
337 </tr>
338 <tr>
339 <td class="function_type">
340 <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="returnvalue">hb_glyph_position_t</span></a> *
341 </td>
342 <td class="function_name">
343 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions" title="hb_buffer_get_glyph_positions ()">hb_buffer_get_glyph_positions</a> <span class="c_punctuation">()</span>
344 </td>
345 </tr>
346 <tr>
347 <td class="function_type">
348 <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
349 </td>
350 <td class="function_name">
351 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-invisible-glyph" title="hb_buffer_get_invisible_glyph ()">hb_buffer_get_invisible_glyph</a> <span class="c_punctuation">()</span>
352 </td>
353 </tr>
354 <tr>
355 <td class="function_type">
356 <span class="returnvalue">void</span>
357 </td>
358 <td class="function_name">
359 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-invisible-glyph" title="hb_buffer_set_invisible_glyph ()">hb_buffer_set_invisible_glyph</a> <span class="c_punctuation">()</span>
360 </td>
361 </tr>
362 <tr>
363 <td class="function_type">
364 <span class="returnvalue">void</span>
365 </td>
366 <td class="function_name">
367 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()">hb_buffer_set_replacement_codepoint</a> <span class="c_punctuation">()</span>
368 </td>
369 </tr>
370 <tr>
371 <td class="function_type">
372 <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
373 </td>
374 <td class="function_name">
375 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-replacement-codepoint" title="hb_buffer_get_replacement_codepoint ()">hb_buffer_get_replacement_codepoint</a> <span class="c_punctuation">()</span>
376 </td>
377 </tr>
378 <tr>
379 <td class="function_type">
380 <span class="returnvalue">void</span>
381 </td>
382 <td class="function_name">
383 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-normalize-glyphs" title="hb_buffer_normalize_glyphs ()">hb_buffer_normalize_glyphs</a> <span class="c_punctuation">()</span>
384 </td>
385 </tr>
386 <tr>
387 <td class="function_type">
388 <span class="returnvalue">void</span>
389 </td>
390 <td class="function_name">
391 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse" title="hb_buffer_reverse ()">hb_buffer_reverse</a> <span class="c_punctuation">()</span>
392 </td>
393 </tr>
394 <tr>
395 <td class="function_type">
396 <span class="returnvalue">void</span>
397 </td>
398 <td class="function_name">
399 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse-range" title="hb_buffer_reverse_range ()">hb_buffer_reverse_range</a> <span class="c_punctuation">()</span>
400 </td>
401 </tr>
402 <tr>
403 <td class="function_type">
404 <span class="returnvalue">void</span>
405 </td>
406 <td class="function_name">
407 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse-clusters" title="hb_buffer_reverse_clusters ()">hb_buffer_reverse_clusters</a> <span class="c_punctuation">()</span>
408 </td>
409 </tr>
410 <tr>
411 <td class="function_type">unsigned <span class="returnvalue">int</span>
412 </td>
413 <td class="function_name">
414 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs" title="hb_buffer_serialize_glyphs ()">hb_buffer_serialize_glyphs</a> <span class="c_punctuation">()</span>
415 </td>
416 </tr>
417 <tr>
418 <td class="function_type">
419 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
420 </td>
421 <td class="function_name">
422 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-deserialize-glyphs" title="hb_buffer_deserialize_glyphs ()">hb_buffer_deserialize_glyphs</a> <span class="c_punctuation">()</span>
423 </td>
424 </tr>
425 <tr>
426 <td class="function_type">
427 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="returnvalue">hb_buffer_serialize_format_t</span></a>
428 </td>
429 <td class="function_name">
430 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-from-string" title="hb_buffer_serialize_format_from_string ()">hb_buffer_serialize_format_from_string</a> <span class="c_punctuation">()</span>
431 </td>
432 </tr>
433 <tr>
434 <td class="function_type">const <span class="returnvalue">char</span> *
435 </td>
436 <td class="function_name">
437 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-to-string" title="hb_buffer_serialize_format_to_string ()">hb_buffer_serialize_format_to_string</a> <span class="c_punctuation">()</span>
438 </td>
439 </tr>
440 <tr>
441 <td class="function_type">const <span class="returnvalue">char</span> **
442 </td>
443 <td class="function_name">
444 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-list-formats" title="hb_buffer_serialize_list_formats ()">hb_buffer_serialize_list_formats</a> <span class="c_punctuation">()</span>
445 </td>
446 </tr>
447 <tr>
448 <td class="function_type">
449 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
450 </td>
451 <td class="function_name">
452 <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-equal" title="hb_segment_properties_equal ()">hb_segment_properties_equal</a> <span class="c_punctuation">()</span>
453 </td>
454 </tr>
455 <tr>
456 <td class="function_type">unsigned <span class="returnvalue">int</span>
457 </td>
458 <td class="function_name">
459 <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-hash" title="hb_segment_properties_hash ()">hb_segment_properties_hash</a> <span class="c_punctuation">()</span>
460 </td>
461 </tr>
462 <tr>
463 <td class="function_type">
464 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-diff-flags-t" title="enum hb_buffer_diff_flags_t"><span class="returnvalue">hb_buffer_diff_flags_t</span></a>
465 </td>
466 <td class="function_name">
467 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-diff" title="hb_buffer_diff ()">hb_buffer_diff</a> <span class="c_punctuation">()</span>
468 </td>
469 </tr>
470 <tr>
471 <td class="function_type">
472 <span class="returnvalue">void</span>
473 </td>
474 <td class="function_name">
475 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-message-func" title="hb_buffer_set_message_func ()">hb_buffer_set_message_func</a> <span class="c_punctuation">()</span>
476 </td>
477 </tr>
478 <tr>
479 <td class="function_type">
480 <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-flags-t" title="enum hb_glyph_flags_t"><span class="returnvalue">hb_glyph_flags_t</span></a>
481 </td>
482 <td class="function_name">
483 <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-info-get-glyph-flags" title="hb_glyph_info_get_glyph_flags ()">hb_glyph_info_get_glyph_flags</a> <span class="c_punctuation">()</span>
484 </td>
485 </tr>
486 <tr>
487 <td class="function_type">
488 <a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
489 </td>
490 <td class="function_name">
491 <span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-message-func-t" title="hb_buffer_message_func_t ()">*hb_buffer_message_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
492 </td>
493 </tr>
494 </tbody>
495 </table></div>
496 </div>
497 <a name="hb-buffer-t"></a><a name="hb-glyph-position-t"></a><a name="hb-segment-properties-t"></a><div class="refsect1">
498 <a name="harfbuzz-hb-buffer.other"></a><h2>Types and Values</h2>
499 <div class="informaltable"><table class="informaltable" width="100%" border="0">
500 <colgroup>
501 <col width="150px" class="name">
502 <col class="description">
503 </colgroup>
504 <tbody>
505 <tr>
506 <td class="define_keyword">#define</td>
507 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#HB-SEGMENT-PROPERTIES-DEFAULT:CAPS" title="HB_SEGMENT_PROPERTIES_DEFAULT">HB_SEGMENT_PROPERTIES_DEFAULT</a></td>
508 </tr>
509 <tr>
510 <td class="define_keyword">#define</td>
511 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-REPLACEMENT-CODEPOINT-DEFAULT:CAPS" title="HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT">HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT</a></td>
512 </tr>
513 <tr>
514 <td class="typedef_keyword">typedef</td>
515 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t">hb_buffer_t</a></td>
516 </tr>
517 <tr>
518 <td class="datatype_keyword">enum</td>
519 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-flags-t" title="enum hb_glyph_flags_t">hb_glyph_flags_t</a></td>
520 </tr>
521 <tr>
522 <td class="datatype_keyword"> </td>
523 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t-struct" title="hb_glyph_position_t">hb_glyph_position_t</a></td>
524 </tr>
525 <tr>
526 <td class="datatype_keyword">enum</td>
527 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t">hb_buffer_content_type_t</a></td>
528 </tr>
529 <tr>
530 <td class="datatype_keyword">enum</td>
531 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t">hb_buffer_flags_t</a></td>
532 </tr>
533 <tr>
534 <td class="datatype_keyword">enum</td>
535 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-cluster-level-t" title="enum hb_buffer_cluster_level_t">hb_buffer_cluster_level_t</a></td>
536 </tr>
537 <tr>
538 <td class="datatype_keyword"> </td>
539 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t-struct" title="hb_segment_properties_t">hb_segment_properties_t</a></td>
540 </tr>
541 <tr>
542 <td class="datatype_keyword">enum</td>
543 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t">hb_buffer_serialize_format_t</a></td>
544 </tr>
545 <tr>
546 <td class="datatype_keyword">enum</td>
547 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t">hb_buffer_serialize_flags_t</a></td>
548 </tr>
549 <tr>
550 <td class="datatype_keyword">enum</td>
551 <td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-diff-flags-t" title="enum hb_buffer_diff_flags_t">hb_buffer_diff_flags_t</a></td>
552 </tr>
553 </tbody>
554 </table></div>
555 </div>
556 <div class="refsect1">
557 <a name="harfbuzz-hb-buffer.object-hierarchy"></a><h2>Object Hierarchy</h2>
558 <pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
559     <span class="lineart">├──</span> hb_buffer_t
560     <span class="lineart">├──</span> hb_glyph_position_t
561     <span class="lineart">╰──</span> hb_segment_properties_t
562     <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
563     <span class="lineart">├──</span> hb_buffer_cluster_level_t
564     <span class="lineart">├──</span> hb_buffer_content_type_t
565     <span class="lineart">╰──</span> hb_buffer_serialize_format_t
566     <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
567     <span class="lineart">├──</span> hb_buffer_diff_flags_t
568     <span class="lineart">├──</span> hb_buffer_flags_t
569     <span class="lineart">├──</span> hb_buffer_serialize_flags_t
570     <span class="lineart">╰──</span> hb_glyph_flags_t
571 </pre>
572 </div>
573 <div class="refsect1">
574 <a name="harfbuzz-hb-buffer.includes"></a><h2>Includes</h2>
575 <pre class="synopsis">#include &lt;hb.h&gt;
576 </pre>
577 </div>
578 <div class="refsect1">
579 <a name="harfbuzz-hb-buffer.description"></a><h2>Description</h2>
580 <p>Buffers serve dual role in HarfBuzz; they hold the input characters that are
581 passed to <a class="link" href="harfbuzz-hb-shape.html#hb-shape" title="hb_shape ()"><code class="function">hb_shape()</code></a>, and after shaping they hold the output glyphs.</p>
582 </div>
583 <div class="refsect1">
584 <a name="harfbuzz-hb-buffer.functions_details"></a><h2>Functions</h2>
585 <div class="refsect2">
586 <a name="hb-buffer-create"></a><h3>hb_buffer_create ()</h3>
587 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
588 hb_buffer_create (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
589 <p>Creates a new <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> with all properties to defaults.</p>
590 <p><span class="annotation">[Xconstructor]</span></p>
591 <div class="refsect3">
592 <a name="hb-buffer-create.returns"></a><h4>Returns</h4>
593 <p>A newly allocated <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> with a reference count of 1. The initial
594 reference count should be released with <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-destroy" title="hb_buffer_destroy ()"><code class="function">hb_buffer_destroy()</code></a> when you are done
595 using the <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>. This function never returns <code class="literal">NULL</code>. If memory cannot
596 be allocated, a special <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> object will be returned on which
597 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-allocation-successful" title="hb_buffer_allocation_successful ()"><code class="function">hb_buffer_allocation_successful()</code></a> returns <code class="literal">false</code>. </p>
598 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
599 </div>
600 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
601 </div>
602 <hr>
603 <div class="refsect2">
604 <a name="hb-buffer-reference"></a><h3>hb_buffer_reference ()</h3>
605 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
606 hb_buffer_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
607 <p>Increases the reference count on <em class="parameter"><code>buffer</code></em>
608  by one. This prevents <em class="parameter"><code>buffer</code></em>
609  from
610 being destroyed until a matching call to <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-destroy" title="hb_buffer_destroy ()"><code class="function">hb_buffer_destroy()</code></a> is made.</p>
611 <p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
612 <div class="refsect3">
613 <a name="hb-buffer-reference.parameters"></a><h4>Parameters</h4>
614 <div class="informaltable"><table class="informaltable" width="100%" border="0">
615 <colgroup>
616 <col width="150px" class="parameters_name">
617 <col class="parameters_description">
618 <col width="200px" class="parameters_annotations">
619 </colgroup>
620 <tbody><tr>
621 <td class="parameter_name"><p>buffer</p></td>
622 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
623 <td class="parameter_annotations"> </td>
624 </tr></tbody>
625 </table></div>
626 </div>
627 <div class="refsect3">
628 <a name="hb-buffer-reference.returns"></a><h4>Returns</h4>
629 <p>The referenced <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>. </p>
630 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
631 </div>
632 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
633 </div>
634 <hr>
635 <div class="refsect2">
636 <a name="hb-buffer-get-empty"></a><h3>hb_buffer_get_empty ()</h3>
637 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
638 hb_buffer_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
639 <div class="refsect3">
640 <a name="hb-buffer-get-empty.returns"></a><h4>Returns</h4>
641 <p>. </p>
642 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
643 </div>
644 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
645 </div>
646 <hr>
647 <div class="refsect2">
648 <a name="hb-buffer-destroy"></a><h3>hb_buffer_destroy ()</h3>
649 <pre class="programlisting"><span class="returnvalue">void</span>
650 hb_buffer_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
651 <p>Deallocate the <em class="parameter"><code>buffer</code></em>
652 .
653 Decreases the reference count on <em class="parameter"><code>buffer</code></em>
654  by one. If the result is zero, then
655 <em class="parameter"><code>buffer</code></em>
656  and all associated resources are freed. See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reference" title="hb_buffer_reference ()"><code class="function">hb_buffer_reference()</code></a>.</p>
657 <p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
658 <div class="refsect3">
659 <a name="hb-buffer-destroy.parameters"></a><h4>Parameters</h4>
660 <div class="informaltable"><table class="informaltable" width="100%" border="0">
661 <colgroup>
662 <col width="150px" class="parameters_name">
663 <col class="parameters_description">
664 <col width="200px" class="parameters_annotations">
665 </colgroup>
666 <tbody><tr>
667 <td class="parameter_name"><p>buffer</p></td>
668 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
669 <td class="parameter_annotations"> </td>
670 </tr></tbody>
671 </table></div>
672 </div>
673 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
674 </div>
675 <hr>
676 <div class="refsect2">
677 <a name="hb-buffer-reset"></a><h3>hb_buffer_reset ()</h3>
678 <pre class="programlisting"><span class="returnvalue">void</span>
679 hb_buffer_reset (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
680 <p>Resets the buffer to its initial status, as if it was just newly created
681 with <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-create" title="hb_buffer_create ()"><code class="function">hb_buffer_create()</code></a>.</p>
682 <div class="refsect3">
683 <a name="hb-buffer-reset.parameters"></a><h4>Parameters</h4>
684 <div class="informaltable"><table class="informaltable" width="100%" border="0">
685 <colgroup>
686 <col width="150px" class="parameters_name">
687 <col class="parameters_description">
688 <col width="200px" class="parameters_annotations">
689 </colgroup>
690 <tbody><tr>
691 <td class="parameter_name"><p>buffer</p></td>
692 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
693 <td class="parameter_annotations"> </td>
694 </tr></tbody>
695 </table></div>
696 </div>
697 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
698 </div>
699 <hr>
700 <div class="refsect2">
701 <a name="hb-buffer-clear-contents"></a><h3>hb_buffer_clear_contents ()</h3>
702 <pre class="programlisting"><span class="returnvalue">void</span>
703 hb_buffer_clear_contents (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
704 <p>Similar to <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reset" title="hb_buffer_reset ()"><code class="function">hb_buffer_reset()</code></a>, but does not clear the Unicode functions and
705 the replacement code point.</p>
706 <div class="refsect3">
707 <a name="hb-buffer-clear-contents.parameters"></a><h4>Parameters</h4>
708 <div class="informaltable"><table class="informaltable" width="100%" border="0">
709 <colgroup>
710 <col width="150px" class="parameters_name">
711 <col class="parameters_description">
712 <col width="200px" class="parameters_annotations">
713 </colgroup>
714 <tbody><tr>
715 <td class="parameter_name"><p>buffer</p></td>
716 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
717 <td class="parameter_annotations"> </td>
718 </tr></tbody>
719 </table></div>
720 </div>
721 <p class="since">Since: <a class="link" href="api-index-0-9-11.html#api-index-0.9.11">0.9.11</a></p>
722 </div>
723 <hr>
724 <div class="refsect2">
725 <a name="hb-buffer-pre-allocate"></a><h3>hb_buffer_pre_allocate ()</h3>
726 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
727 hb_buffer_pre_allocate (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
728                         <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
729 <p>Pre allocates memory for <em class="parameter"><code>buffer</code></em>
730  to fit at least <em class="parameter"><code>size</code></em>
731  number of items.</p>
732 <div class="refsect3">
733 <a name="hb-buffer-pre-allocate.parameters"></a><h4>Parameters</h4>
734 <div class="informaltable"><table class="informaltable" width="100%" border="0">
735 <colgroup>
736 <col width="150px" class="parameters_name">
737 <col class="parameters_description">
738 <col width="200px" class="parameters_annotations">
739 </colgroup>
740 <tbody>
741 <tr>
742 <td class="parameter_name"><p>buffer</p></td>
743 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
744 <td class="parameter_annotations"> </td>
745 </tr>
746 <tr>
747 <td class="parameter_name"><p>size</p></td>
748 <td class="parameter_description"><p>number of items to pre allocate.</p></td>
749 <td class="parameter_annotations"> </td>
750 </tr>
751 </tbody>
752 </table></div>
753 </div>
754 <div class="refsect3">
755 <a name="hb-buffer-pre-allocate.returns"></a><h4>Returns</h4>
756 <p><code class="literal">true</code> if <em class="parameter"><code>buffer</code></em>
757 memory allocation succeeded, <code class="literal">false</code> otherwise.</p>
758 </div>
759 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
760 </div>
761 <hr>
762 <div class="refsect2">
763 <a name="hb-buffer-allocation-successful"></a><h3>hb_buffer_allocation_successful ()</h3>
764 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
765 hb_buffer_allocation_successful (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
766 <p>Check if allocating memory for the buffer succeeded.</p>
767 <div class="refsect3">
768 <a name="hb-buffer-allocation-successful.parameters"></a><h4>Parameters</h4>
769 <div class="informaltable"><table class="informaltable" width="100%" border="0">
770 <colgroup>
771 <col width="150px" class="parameters_name">
772 <col class="parameters_description">
773 <col width="200px" class="parameters_annotations">
774 </colgroup>
775 <tbody><tr>
776 <td class="parameter_name"><p>buffer</p></td>
777 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
778 <td class="parameter_annotations"> </td>
779 </tr></tbody>
780 </table></div>
781 </div>
782 <div class="refsect3">
783 <a name="hb-buffer-allocation-successful.returns"></a><h4>Returns</h4>
784 <p><code class="literal">true</code> if <em class="parameter"><code>buffer</code></em>
785 memory allocation succeeded, <code class="literal">false</code> otherwise.</p>
786 </div>
787 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
788 </div>
789 <hr>
790 <div class="refsect2">
791 <a name="hb-buffer-add"></a><h3>hb_buffer_add ()</h3>
792 <pre class="programlisting"><span class="returnvalue">void</span>
793 hb_buffer_add (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
794                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> codepoint</code></em>,
795                <em class="parameter"><code>unsigned <span class="type">int</span> cluster</code></em>);</pre>
796 <p>Appends a character with the Unicode value of <em class="parameter"><code>codepoint</code></em>
797  to <em class="parameter"><code>buffer</code></em>
798 , and
799 gives it the initial cluster value of <em class="parameter"><code>cluster</code></em>
800 . Clusters can be any thing
801 the client wants, they are usually used to refer to the index of the
802 character in the input text stream and are output in
803 <span class="type">hb_glyph_info_t.cluster</span> field.</p>
804 <p>This function does not check the validity of <em class="parameter"><code>codepoint</code></em>
805 , it is up to the
806 caller to ensure it is a valid Unicode code point.</p>
807 <div class="refsect3">
808 <a name="hb-buffer-add.parameters"></a><h4>Parameters</h4>
809 <div class="informaltable"><table class="informaltable" width="100%" border="0">
810 <colgroup>
811 <col width="150px" class="parameters_name">
812 <col class="parameters_description">
813 <col width="200px" class="parameters_annotations">
814 </colgroup>
815 <tbody>
816 <tr>
817 <td class="parameter_name"><p>buffer</p></td>
818 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
819 <td class="parameter_annotations"> </td>
820 </tr>
821 <tr>
822 <td class="parameter_name"><p>codepoint</p></td>
823 <td class="parameter_description"><p>a Unicode code point.</p></td>
824 <td class="parameter_annotations"> </td>
825 </tr>
826 <tr>
827 <td class="parameter_name"><p>cluster</p></td>
828 <td class="parameter_description"><p>the cluster value of <em class="parameter"><code>codepoint</code></em>
829 .</p></td>
830 <td class="parameter_annotations"> </td>
831 </tr>
832 </tbody>
833 </table></div>
834 </div>
835 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
836 </div>
837 <hr>
838 <div class="refsect2">
839 <a name="hb-buffer-add-codepoints"></a><h3>hb_buffer_add_codepoints ()</h3>
840 <pre class="programlisting"><span class="returnvalue">void</span>
841 hb_buffer_add_codepoints (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
842                           <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *text</code></em>,
843                           <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
844                           <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
845                           <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
846 <p>Appends characters from <em class="parameter"><code>text</code></em>
847  array to <em class="parameter"><code>buffer</code></em>
848 . The <em class="parameter"><code>item_offset</code></em>
849  is the
850 position of the first character from <em class="parameter"><code>text</code></em>
851  that will be appended, and
852 <em class="parameter"><code>item_length</code></em>
853  is the number of character. When shaping part of a larger text
854 (e.g. a run of text from a paragraph), instead of passing just the substring
855 corresponding to the run, it is preferable to pass the whole
856 paragraph and specify the run start and length as <em class="parameter"><code>item_offset</code></em>
857  and
858 <em class="parameter"><code>item_length</code></em>
859 , respectively, to give HarfBuzz the full context to be able,
860 for example, to do cross-run Arabic shaping or properly handle combining
861 marks at stat of run.</p>
862 <p>This function does not check the validity of <em class="parameter"><code>text</code></em>
863 , it is up to the caller
864 to ensure it contains a valid Unicode code points.</p>
865 <div class="refsect3">
866 <a name="hb-buffer-add-codepoints.parameters"></a><h4>Parameters</h4>
867 <div class="informaltable"><table class="informaltable" width="100%" border="0">
868 <colgroup>
869 <col width="150px" class="parameters_name">
870 <col class="parameters_description">
871 <col width="200px" class="parameters_annotations">
872 </colgroup>
873 <tbody>
874 <tr>
875 <td class="parameter_name"><p>buffer</p></td>
876 <td class="parameter_description"><p>a <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> to append characters to.</p></td>
877 <td class="parameter_annotations"> </td>
878 </tr>
879 <tr>
880 <td class="parameter_name"><p>text</p></td>
881 <td class="parameter_description"><p> an array of Unicode code points to append. </p></td>
882 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length]</span></td>
883 </tr>
884 <tr>
885 <td class="parameter_name"><p>text_length</p></td>
886 <td class="parameter_description"><p>the length of the <em class="parameter"><code>text</code></em>
887 , or -1 if it is <code class="literal">NULL</code> terminated.</p></td>
888 <td class="parameter_annotations"> </td>
889 </tr>
890 <tr>
891 <td class="parameter_name"><p>item_offset</p></td>
892 <td class="parameter_description"><p>the offset of the first code point to add to the <em class="parameter"><code>buffer</code></em>
893 .</p></td>
894 <td class="parameter_annotations"> </td>
895 </tr>
896 <tr>
897 <td class="parameter_name"><p>item_length</p></td>
898 <td class="parameter_description"><p>the number of code points to add to the <em class="parameter"><code>buffer</code></em>
899 , or -1 for the
900 end of <em class="parameter"><code>text</code></em>
901 (assuming it is <code class="literal">NULL</code> terminated).</p></td>
902 <td class="parameter_annotations"> </td>
903 </tr>
904 </tbody>
905 </table></div>
906 </div>
907 <p class="since">Since: <a class="link" href="api-index-0-9-31.html#api-index-0.9.31">0.9.31</a></p>
908 </div>
909 <hr>
910 <div class="refsect2">
911 <a name="hb-buffer-add-utf32"></a><h3>hb_buffer_add_utf32 ()</h3>
912 <pre class="programlisting"><span class="returnvalue">void</span>
913 hb_buffer_add_utf32 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
914                      <em class="parameter"><code>const <span class="type">uint32_t</span> *text</code></em>,
915                      <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
916                      <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
917                      <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
918 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()"><code class="function">hb_buffer_add_codepoints()</code></a>.</p>
919 <p>Replaces invalid UTF-32 characters with the <em class="parameter"><code>buffer</code></em>
920  replacement code point,
921 see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()"><code class="function">hb_buffer_set_replacement_codepoint()</code></a>.</p>
922 <div class="refsect3">
923 <a name="hb-buffer-add-utf32.parameters"></a><h4>Parameters</h4>
924 <div class="informaltable"><table class="informaltable" width="100%" border="0">
925 <colgroup>
926 <col width="150px" class="parameters_name">
927 <col class="parameters_description">
928 <col width="200px" class="parameters_annotations">
929 </colgroup>
930 <tbody>
931 <tr>
932 <td class="parameter_name"><p>buffer</p></td>
933 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
934 <td class="parameter_annotations"> </td>
935 </tr>
936 <tr>
937 <td class="parameter_name"><p>text</p></td>
938 <td class="parameter_description"><p> an array of UTF-32 characters to append. </p></td>
939 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length]</span></td>
940 </tr>
941 <tr>
942 <td class="parameter_name"><p>text_length</p></td>
943 <td class="parameter_description"><p>the length of the <em class="parameter"><code>text</code></em>
944 , or -1 if it is <code class="literal">NULL</code> terminated.</p></td>
945 <td class="parameter_annotations"> </td>
946 </tr>
947 <tr>
948 <td class="parameter_name"><p>item_offset</p></td>
949 <td class="parameter_description"><p>the offset of the first character to add to the <em class="parameter"><code>buffer</code></em>
950 .</p></td>
951 <td class="parameter_annotations"> </td>
952 </tr>
953 <tr>
954 <td class="parameter_name"><p>item_length</p></td>
955 <td class="parameter_description"><p>the number of characters to add to the <em class="parameter"><code>buffer</code></em>
956 , or -1 for the
957 end of <em class="parameter"><code>text</code></em>
958 (assuming it is <code class="literal">NULL</code> terminated).</p></td>
959 <td class="parameter_annotations"> </td>
960 </tr>
961 </tbody>
962 </table></div>
963 </div>
964 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
965 </div>
966 <hr>
967 <div class="refsect2">
968 <a name="hb-buffer-add-utf16"></a><h3>hb_buffer_add_utf16 ()</h3>
969 <pre class="programlisting"><span class="returnvalue">void</span>
970 hb_buffer_add_utf16 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
971                      <em class="parameter"><code>const <span class="type">uint16_t</span> *text</code></em>,
972                      <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
973                      <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
974                      <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
975 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()"><code class="function">hb_buffer_add_codepoints()</code></a>.</p>
976 <p>Replaces invalid UTF-16 characters with the <em class="parameter"><code>buffer</code></em>
977  replacement code point,
978 see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()"><code class="function">hb_buffer_set_replacement_codepoint()</code></a>.</p>
979 <div class="refsect3">
980 <a name="hb-buffer-add-utf16.parameters"></a><h4>Parameters</h4>
981 <div class="informaltable"><table class="informaltable" width="100%" border="0">
982 <colgroup>
983 <col width="150px" class="parameters_name">
984 <col class="parameters_description">
985 <col width="200px" class="parameters_annotations">
986 </colgroup>
987 <tbody>
988 <tr>
989 <td class="parameter_name"><p>buffer</p></td>
990 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
991 <td class="parameter_annotations"> </td>
992 </tr>
993 <tr>
994 <td class="parameter_name"><p>text</p></td>
995 <td class="parameter_description"><p> an array of UTF-16 characters to append. </p></td>
996 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length]</span></td>
997 </tr>
998 <tr>
999 <td class="parameter_name"><p>text_length</p></td>
1000 <td class="parameter_description"><p>the length of the <em class="parameter"><code>text</code></em>
1001 , or -1 if it is <code class="literal">NULL</code> terminated.</p></td>
1002 <td class="parameter_annotations"> </td>
1003 </tr>
1004 <tr>
1005 <td class="parameter_name"><p>item_offset</p></td>
1006 <td class="parameter_description"><p>the offset of the first character to add to the <em class="parameter"><code>buffer</code></em>
1007 .</p></td>
1008 <td class="parameter_annotations"> </td>
1009 </tr>
1010 <tr>
1011 <td class="parameter_name"><p>item_length</p></td>
1012 <td class="parameter_description"><p>the number of characters to add to the <em class="parameter"><code>buffer</code></em>
1013 , or -1 for the
1014 end of <em class="parameter"><code>text</code></em>
1015 (assuming it is <code class="literal">NULL</code> terminated).</p></td>
1016 <td class="parameter_annotations"> </td>
1017 </tr>
1018 </tbody>
1019 </table></div>
1020 </div>
1021 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1022 </div>
1023 <hr>
1024 <div class="refsect2">
1025 <a name="hb-buffer-add-utf8"></a><h3>hb_buffer_add_utf8 ()</h3>
1026 <pre class="programlisting"><span class="returnvalue">void</span>
1027 hb_buffer_add_utf8 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1028                     <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
1029                     <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
1030                     <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
1031                     <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
1032 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()"><code class="function">hb_buffer_add_codepoints()</code></a>.</p>
1033 <p>Replaces invalid UTF-8 characters with the <em class="parameter"><code>buffer</code></em>
1034  replacement code point,
1035 see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()"><code class="function">hb_buffer_set_replacement_codepoint()</code></a>.</p>
1036 <div class="refsect3">
1037 <a name="hb-buffer-add-utf8.parameters"></a><h4>Parameters</h4>
1038 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1039 <colgroup>
1040 <col width="150px" class="parameters_name">
1041 <col class="parameters_description">
1042 <col width="200px" class="parameters_annotations">
1043 </colgroup>
1044 <tbody>
1045 <tr>
1046 <td class="parameter_name"><p>buffer</p></td>
1047 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1048 <td class="parameter_annotations"> </td>
1049 </tr>
1050 <tr>
1051 <td class="parameter_name"><p>text</p></td>
1052 <td class="parameter_description"><p> an array of UTF-8
1053 characters to append. </p></td>
1054 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> uint8_t]</span></td>
1055 </tr>
1056 <tr>
1057 <td class="parameter_name"><p>text_length</p></td>
1058 <td class="parameter_description"><p>the length of the <em class="parameter"><code>text</code></em>
1059 , or -1 if it is <code class="literal">NULL</code> terminated.</p></td>
1060 <td class="parameter_annotations"> </td>
1061 </tr>
1062 <tr>
1063 <td class="parameter_name"><p>item_offset</p></td>
1064 <td class="parameter_description"><p>the offset of the first character to add to the <em class="parameter"><code>buffer</code></em>
1065 .</p></td>
1066 <td class="parameter_annotations"> </td>
1067 </tr>
1068 <tr>
1069 <td class="parameter_name"><p>item_length</p></td>
1070 <td class="parameter_description"><p>the number of characters to add to the <em class="parameter"><code>buffer</code></em>
1071 , or -1 for the
1072 end of <em class="parameter"><code>text</code></em>
1073 (assuming it is <code class="literal">NULL</code> terminated).</p></td>
1074 <td class="parameter_annotations"> </td>
1075 </tr>
1076 </tbody>
1077 </table></div>
1078 </div>
1079 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1080 </div>
1081 <hr>
1082 <div class="refsect2">
1083 <a name="hb-buffer-add-latin1"></a><h3>hb_buffer_add_latin1 ()</h3>
1084 <pre class="programlisting"><span class="returnvalue">void</span>
1085 hb_buffer_add_latin1 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1086                       <em class="parameter"><code>const <span class="type">uint8_t</span> *text</code></em>,
1087                       <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
1088                       <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
1089                       <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
1090 <p>Similar to <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()"><code class="function">hb_buffer_add_codepoints()</code></a>, but allows only access to first 256
1091 Unicode code points that can fit in 8-bit strings.</p>
1092 <div class="note">Has nothing to do with non-Unicode Latin-1 encoding.</div>
1093 <div class="refsect3">
1094 <a name="hb-buffer-add-latin1.parameters"></a><h4>Parameters</h4>
1095 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1096 <colgroup>
1097 <col width="150px" class="parameters_name">
1098 <col class="parameters_description">
1099 <col width="200px" class="parameters_annotations">
1100 </colgroup>
1101 <tbody>
1102 <tr>
1103 <td class="parameter_name"><p>buffer</p></td>
1104 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1105 <td class="parameter_annotations"> </td>
1106 </tr>
1107 <tr>
1108 <td class="parameter_name"><p>text</p></td>
1109 <td class="parameter_description"><p> an array of UTF-8
1110 characters to append. </p></td>
1111 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> uint8_t]</span></td>
1112 </tr>
1113 <tr>
1114 <td class="parameter_name"><p>text_length</p></td>
1115 <td class="parameter_description"><p>the length of the <em class="parameter"><code>text</code></em>
1116 , or -1 if it is <code class="literal">NULL</code> terminated.</p></td>
1117 <td class="parameter_annotations"> </td>
1118 </tr>
1119 <tr>
1120 <td class="parameter_name"><p>item_offset</p></td>
1121 <td class="parameter_description"><p>the offset of the first character to add to the <em class="parameter"><code>buffer</code></em>
1122 .</p></td>
1123 <td class="parameter_annotations"> </td>
1124 </tr>
1125 <tr>
1126 <td class="parameter_name"><p>item_length</p></td>
1127 <td class="parameter_description"><p>the number of characters to add to the <em class="parameter"><code>buffer</code></em>
1128 , or -1 for the
1129 end of <em class="parameter"><code>text</code></em>
1130 (assuming it is <code class="literal">NULL</code> terminated).</p></td>
1131 <td class="parameter_annotations"> </td>
1132 </tr>
1133 </tbody>
1134 </table></div>
1135 </div>
1136 <p class="since">Since: <a class="link" href="api-index-0-9-39.html#api-index-0.9.39">0.9.39</a></p>
1137 </div>
1138 <hr>
1139 <div class="refsect2">
1140 <a name="hb-buffer-append"></a><h3>hb_buffer_append ()</h3>
1141 <pre class="programlisting"><span class="returnvalue">void</span>
1142 hb_buffer_append (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1143                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *source</code></em>,
1144                   <em class="parameter"><code>unsigned <span class="type">int</span> start</code></em>,
1145                   <em class="parameter"><code>unsigned <span class="type">int</span> end</code></em>);</pre>
1146 <p>Append (part of) contents of another buffer to this buffer.</p>
1147 <div class="refsect3">
1148 <a name="hb-buffer-append.parameters"></a><h4>Parameters</h4>
1149 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1150 <colgroup>
1151 <col width="150px" class="parameters_name">
1152 <col class="parameters_description">
1153 <col width="200px" class="parameters_annotations">
1154 </colgroup>
1155 <tbody>
1156 <tr>
1157 <td class="parameter_name"><p>buffer</p></td>
1158 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1159 <td class="parameter_annotations"> </td>
1160 </tr>
1161 <tr>
1162 <td class="parameter_name"><p>source</p></td>
1163 <td class="parameter_description"><p>source <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1164 <td class="parameter_annotations"> </td>
1165 </tr>
1166 <tr>
1167 <td class="parameter_name"><p>start</p></td>
1168 <td class="parameter_description"><p>start index into source buffer to copy.  Use 0 to copy from start of buffer.</p></td>
1169 <td class="parameter_annotations"> </td>
1170 </tr>
1171 <tr>
1172 <td class="parameter_name"><p>end</p></td>
1173 <td class="parameter_description"><p>end index into source buffer to copy.  Use (unsigned int) -1 to copy to end of buffer.</p></td>
1174 <td class="parameter_annotations"> </td>
1175 </tr>
1176 </tbody>
1177 </table></div>
1178 </div>
1179 <p class="since">Since: <a class="link" href="api-index-1-5-0.html#api-index-1.5.0">1.5.0</a></p>
1180 </div>
1181 <hr>
1182 <div class="refsect2">
1183 <a name="hb-buffer-set-content-type"></a><h3>hb_buffer_set_content_type ()</h3>
1184 <pre class="programlisting"><span class="returnvalue">void</span>
1185 hb_buffer_set_content_type (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1186                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t"><span class="type">hb_buffer_content_type_t</span></a> content_type</code></em>);</pre>
1187 <p>Sets the type of <em class="parameter"><code>buffer</code></em>
1188  contents, buffers are either empty, contain
1189 characters (before shaping) or glyphs (the result of shaping).</p>
1190 <div class="refsect3">
1191 <a name="hb-buffer-set-content-type.parameters"></a><h4>Parameters</h4>
1192 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1193 <colgroup>
1194 <col width="150px" class="parameters_name">
1195 <col class="parameters_description">
1196 <col width="200px" class="parameters_annotations">
1197 </colgroup>
1198 <tbody>
1199 <tr>
1200 <td class="parameter_name"><p>buffer</p></td>
1201 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1202 <td class="parameter_annotations"> </td>
1203 </tr>
1204 <tr>
1205 <td class="parameter_name"><p>content_type</p></td>
1206 <td class="parameter_description"><p>the type of buffer contents to set</p></td>
1207 <td class="parameter_annotations"> </td>
1208 </tr>
1209 </tbody>
1210 </table></div>
1211 </div>
1212 <p class="since">Since: <a class="link" href="api-index-0-9-5.html#api-index-0.9.5">0.9.5</a></p>
1213 </div>
1214 <hr>
1215 <div class="refsect2">
1216 <a name="hb-buffer-get-content-type"></a><h3>hb_buffer_get_content_type ()</h3>
1217 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t"><span class="returnvalue">hb_buffer_content_type_t</span></a>
1218 hb_buffer_get_content_type (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1219 <p>see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-content-type" title="hb_buffer_set_content_type ()"><code class="function">hb_buffer_set_content_type()</code></a>.</p>
1220 <div class="refsect3">
1221 <a name="hb-buffer-get-content-type.parameters"></a><h4>Parameters</h4>
1222 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1223 <colgroup>
1224 <col width="150px" class="parameters_name">
1225 <col class="parameters_description">
1226 <col width="200px" class="parameters_annotations">
1227 </colgroup>
1228 <tbody><tr>
1229 <td class="parameter_name"><p>buffer</p></td>
1230 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1231 <td class="parameter_annotations"> </td>
1232 </tr></tbody>
1233 </table></div>
1234 </div>
1235 <div class="refsect3">
1236 <a name="hb-buffer-get-content-type.returns"></a><h4>Returns</h4>
1237 <p>The type of <em class="parameter"><code>buffer</code></em>
1238 contents.</p>
1239 </div>
1240 <p class="since">Since: <a class="link" href="api-index-0-9-5.html#api-index-0.9.5">0.9.5</a></p>
1241 </div>
1242 <hr>
1243 <div class="refsect2">
1244 <a name="hb-buffer-set-direction"></a><h3>hb_buffer_set_direction ()</h3>
1245 <pre class="programlisting"><span class="returnvalue">void</span>
1246 hb_buffer_set_direction (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1247                          <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>);</pre>
1248 <p>Set the text flow direction of the buffer. No shaping can happen without
1249 setting <em class="parameter"><code>buffer</code></em>
1250  direction, and it controls the visual direction for the
1251 output glyphs; for RTL direction the glyphs will be reversed. Many layout
1252 features depend on the proper setting of the direction, for example,
1253 reversing RTL text before shaping, then shaping with LTR direction is not
1254 the same as keeping the text in logical order and shaping with RTL
1255 direction.</p>
1256 <div class="refsect3">
1257 <a name="hb-buffer-set-direction.parameters"></a><h4>Parameters</h4>
1258 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1259 <colgroup>
1260 <col width="150px" class="parameters_name">
1261 <col class="parameters_description">
1262 <col width="200px" class="parameters_annotations">
1263 </colgroup>
1264 <tbody>
1265 <tr>
1266 <td class="parameter_name"><p>buffer</p></td>
1267 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1268 <td class="parameter_annotations"> </td>
1269 </tr>
1270 <tr>
1271 <td class="parameter_name"><p>direction</p></td>
1272 <td class="parameter_description"><p>the <a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> of the <em class="parameter"><code>buffer</code></em>
1273 </p></td>
1274 <td class="parameter_annotations"> </td>
1275 </tr>
1276 </tbody>
1277 </table></div>
1278 </div>
1279 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1280 </div>
1281 <hr>
1282 <div class="refsect2">
1283 <a name="hb-buffer-get-direction"></a><h3>hb_buffer_get_direction ()</h3>
1284 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
1285 hb_buffer_get_direction (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1286 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-direction" title="hb_buffer_set_direction ()"><code class="function">hb_buffer_set_direction()</code></a></p>
1287 <div class="refsect3">
1288 <a name="hb-buffer-get-direction.parameters"></a><h4>Parameters</h4>
1289 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1290 <colgroup>
1291 <col width="150px" class="parameters_name">
1292 <col class="parameters_description">
1293 <col width="200px" class="parameters_annotations">
1294 </colgroup>
1295 <tbody><tr>
1296 <td class="parameter_name"><p>buffer</p></td>
1297 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1298 <td class="parameter_annotations"> </td>
1299 </tr></tbody>
1300 </table></div>
1301 </div>
1302 <div class="refsect3">
1303 <a name="hb-buffer-get-direction.returns"></a><h4>Returns</h4>
1304 <p>The direction of the <em class="parameter"><code>buffer</code></em>
1305 .</p>
1306 </div>
1307 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1308 </div>
1309 <hr>
1310 <div class="refsect2">
1311 <a name="hb-buffer-set-script"></a><h3>hb_buffer_set_script ()</h3>
1312 <pre class="programlisting"><span class="returnvalue">void</span>
1313 hb_buffer_set_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1314                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>);</pre>
1315 <p>Sets the script of <em class="parameter"><code>buffer</code></em>
1316  to <em class="parameter"><code>script</code></em>
1317 .</p>
1318 <p>Script is crucial for choosing the proper shaping behaviour for scripts that
1319 require it (e.g. Arabic) and the which OpenType features defined in the font
1320 to be applied.</p>
1321 <p>You can pass one of the predefined <a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> values, or use
1322 <a class="link" href="harfbuzz-hb-common.html#hb-script-from-string" title="hb_script_from_string ()"><code class="function">hb_script_from_string()</code></a> or <a class="link" href="harfbuzz-hb-common.html#hb-script-from-iso15924-tag" title="hb_script_from_iso15924_tag ()"><code class="function">hb_script_from_iso15924_tag()</code></a> to get the
1323 corresponding script from an ISO 15924 script tag.</p>
1324 <div class="refsect3">
1325 <a name="hb-buffer-set-script.parameters"></a><h4>Parameters</h4>
1326 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1327 <colgroup>
1328 <col width="150px" class="parameters_name">
1329 <col class="parameters_description">
1330 <col width="200px" class="parameters_annotations">
1331 </colgroup>
1332 <tbody>
1333 <tr>
1334 <td class="parameter_name"><p>buffer</p></td>
1335 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1336 <td class="parameter_annotations"> </td>
1337 </tr>
1338 <tr>
1339 <td class="parameter_name"><p>script</p></td>
1340 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> to set.</p></td>
1341 <td class="parameter_annotations"> </td>
1342 </tr>
1343 </tbody>
1344 </table></div>
1345 </div>
1346 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1347 </div>
1348 <hr>
1349 <div class="refsect2">
1350 <a name="hb-buffer-get-script"></a><h3>hb_buffer_get_script ()</h3>
1351 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
1352 hb_buffer_get_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1353 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-script" title="hb_buffer_set_script ()"><code class="function">hb_buffer_set_script()</code></a>.</p>
1354 <div class="refsect3">
1355 <a name="hb-buffer-get-script.parameters"></a><h4>Parameters</h4>
1356 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1357 <colgroup>
1358 <col width="150px" class="parameters_name">
1359 <col class="parameters_description">
1360 <col width="200px" class="parameters_annotations">
1361 </colgroup>
1362 <tbody><tr>
1363 <td class="parameter_name"><p>buffer</p></td>
1364 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1365 <td class="parameter_annotations"> </td>
1366 </tr></tbody>
1367 </table></div>
1368 </div>
1369 <div class="refsect3">
1370 <a name="hb-buffer-get-script.returns"></a><h4>Returns</h4>
1371 <p>The <a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> of the <em class="parameter"><code>buffer</code></em>
1372 .</p>
1373 </div>
1374 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1375 </div>
1376 <hr>
1377 <div class="refsect2">
1378 <a name="hb-buffer-set-language"></a><h3>hb_buffer_set_language ()</h3>
1379 <pre class="programlisting"><span class="returnvalue">void</span>
1380 hb_buffer_set_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1381                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="type">hb_language_t</span></a> language</code></em>);</pre>
1382 <p>Sets the language of <em class="parameter"><code>buffer</code></em>
1383  to <em class="parameter"><code>language</code></em>
1384 .</p>
1385 <p>Languages are crucial for selecting which OpenType feature to apply to the
1386 buffer which can result in applying language-specific behaviour. Languages
1387 are orthogonal to the scripts, and though they are related, they are
1388 different concepts and should not be confused with each other.</p>
1389 <p>Use <a class="link" href="harfbuzz-hb-common.html#hb-language-from-string" title="hb_language_from_string ()"><code class="function">hb_language_from_string()</code></a> to convert from BCP 47 language tags to
1390 <a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="type">hb_language_t</span></a>.</p>
1391 <div class="refsect3">
1392 <a name="hb-buffer-set-language.parameters"></a><h4>Parameters</h4>
1393 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1394 <colgroup>
1395 <col width="150px" class="parameters_name">
1396 <col class="parameters_description">
1397 <col width="200px" class="parameters_annotations">
1398 </colgroup>
1399 <tbody>
1400 <tr>
1401 <td class="parameter_name"><p>buffer</p></td>
1402 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1403 <td class="parameter_annotations"> </td>
1404 </tr>
1405 <tr>
1406 <td class="parameter_name"><p>language</p></td>
1407 <td class="parameter_description"><p>an hb_language_t to set.</p></td>
1408 <td class="parameter_annotations"> </td>
1409 </tr>
1410 </tbody>
1411 </table></div>
1412 </div>
1413 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1414 </div>
1415 <hr>
1416 <div class="refsect2">
1417 <a name="hb-buffer-get-language"></a><h3>hb_buffer_get_language ()</h3>
1418 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="returnvalue">hb_language_t</span></a>
1419 hb_buffer_get_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1420 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-language" title="hb_buffer_set_language ()"><code class="function">hb_buffer_set_language()</code></a>.</p>
1421 <div class="refsect3">
1422 <a name="hb-buffer-get-language.parameters"></a><h4>Parameters</h4>
1423 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1424 <colgroup>
1425 <col width="150px" class="parameters_name">
1426 <col class="parameters_description">
1427 <col width="200px" class="parameters_annotations">
1428 </colgroup>
1429 <tbody><tr>
1430 <td class="parameter_name"><p>buffer</p></td>
1431 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1432 <td class="parameter_annotations"> </td>
1433 </tr></tbody>
1434 </table></div>
1435 </div>
1436 <div class="refsect3">
1437 <a name="hb-buffer-get-language.returns"></a><h4>Returns</h4>
1438 <p>The <a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="type">hb_language_t</span></a> of the buffer. Must not be freed by the caller. </p>
1439 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
1440 </div>
1441 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1442 </div>
1443 <hr>
1444 <div class="refsect2">
1445 <a name="hb-buffer-set-flags"></a><h3>hb_buffer_set_flags ()</h3>
1446 <pre class="programlisting"><span class="returnvalue">void</span>
1447 hb_buffer_set_flags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1448                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="type">hb_buffer_flags_t</span></a> flags</code></em>);</pre>
1449 <p>Sets <em class="parameter"><code>buffer</code></em>
1450  flags to <em class="parameter"><code>flags</code></em>
1451 . See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="type">hb_buffer_flags_t</span></a>.</p>
1452 <div class="refsect3">
1453 <a name="hb-buffer-set-flags.parameters"></a><h4>Parameters</h4>
1454 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1455 <colgroup>
1456 <col width="150px" class="parameters_name">
1457 <col class="parameters_description">
1458 <col width="200px" class="parameters_annotations">
1459 </colgroup>
1460 <tbody>
1461 <tr>
1462 <td class="parameter_name"><p>buffer</p></td>
1463 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1464 <td class="parameter_annotations"> </td>
1465 </tr>
1466 <tr>
1467 <td class="parameter_name"><p>flags</p></td>
1468 <td class="parameter_description"><p>the buffer flags to set.</p></td>
1469 <td class="parameter_annotations"> </td>
1470 </tr>
1471 </tbody>
1472 </table></div>
1473 </div>
1474 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
1475 </div>
1476 <hr>
1477 <div class="refsect2">
1478 <a name="hb-buffer-get-flags"></a><h3>hb_buffer_get_flags ()</h3>
1479 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="returnvalue">hb_buffer_flags_t</span></a>
1480 hb_buffer_get_flags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1481 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-flags" title="hb_buffer_set_flags ()"><code class="function">hb_buffer_set_flags()</code></a>.</p>
1482 <div class="refsect3">
1483 <a name="hb-buffer-get-flags.parameters"></a><h4>Parameters</h4>
1484 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1485 <colgroup>
1486 <col width="150px" class="parameters_name">
1487 <col class="parameters_description">
1488 <col width="200px" class="parameters_annotations">
1489 </colgroup>
1490 <tbody><tr>
1491 <td class="parameter_name"><p>buffer</p></td>
1492 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1493 <td class="parameter_annotations"> </td>
1494 </tr></tbody>
1495 </table></div>
1496 </div>
1497 <div class="refsect3">
1498 <a name="hb-buffer-get-flags.returns"></a><h4>Returns</h4>
1499 <p>The <em class="parameter"><code>buffer</code></em>
1500 flags.</p>
1501 </div>
1502 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
1503 </div>
1504 <hr>
1505 <div class="refsect2">
1506 <a name="hb-buffer-set-cluster-level"></a><h3>hb_buffer_set_cluster_level ()</h3>
1507 <pre class="programlisting"><span class="returnvalue">void</span>
1508 hb_buffer_set_cluster_level (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1509                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-cluster-level-t" title="enum hb_buffer_cluster_level_t"><span class="type">hb_buffer_cluster_level_t</span></a> cluster_level</code></em>);</pre>
1510 <div class="refsect3">
1511 <a name="hb-buffer-set-cluster-level.parameters"></a><h4>Parameters</h4>
1512 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1513 <colgroup>
1514 <col width="150px" class="parameters_name">
1515 <col class="parameters_description">
1516 <col width="200px" class="parameters_annotations">
1517 </colgroup>
1518 <tbody><tr>
1519 <td class="parameter_name"><p>buffer</p></td>
1520 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1521 <td class="parameter_annotations"> </td>
1522 </tr></tbody>
1523 </table></div>
1524 </div>
1525 <p class="since">Since: <a class="link" href="api-index-0-9-42.html#api-index-0.9.42">0.9.42</a></p>
1526 </div>
1527 <hr>
1528 <div class="refsect2">
1529 <a name="hb-buffer-get-cluster-level"></a><h3>hb_buffer_get_cluster_level ()</h3>
1530 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-cluster-level-t" title="enum hb_buffer_cluster_level_t"><span class="returnvalue">hb_buffer_cluster_level_t</span></a>
1531 hb_buffer_get_cluster_level (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1532 <div class="refsect3">
1533 <a name="hb-buffer-get-cluster-level.parameters"></a><h4>Parameters</h4>
1534 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1535 <colgroup>
1536 <col width="150px" class="parameters_name">
1537 <col class="parameters_description">
1538 <col width="200px" class="parameters_annotations">
1539 </colgroup>
1540 <tbody><tr>
1541 <td class="parameter_name"><p>buffer</p></td>
1542 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1543 <td class="parameter_annotations"> </td>
1544 </tr></tbody>
1545 </table></div>
1546 </div>
1547 <p class="since">Since: <a class="link" href="api-index-0-9-42.html#api-index-0.9.42">0.9.42</a></p>
1548 </div>
1549 <hr>
1550 <div class="refsect2">
1551 <a name="hb-buffer-set-length"></a><h3>hb_buffer_set_length ()</h3>
1552 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
1553 hb_buffer_set_length (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1554                       <em class="parameter"><code>unsigned <span class="type">int</span> length</code></em>);</pre>
1555 <p>Similar to <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-pre-allocate" title="hb_buffer_pre_allocate ()"><code class="function">hb_buffer_pre_allocate()</code></a>, but clears any new items added at the
1556 end.</p>
1557 <div class="refsect3">
1558 <a name="hb-buffer-set-length.parameters"></a><h4>Parameters</h4>
1559 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1560 <colgroup>
1561 <col width="150px" class="parameters_name">
1562 <col class="parameters_description">
1563 <col width="200px" class="parameters_annotations">
1564 </colgroup>
1565 <tbody>
1566 <tr>
1567 <td class="parameter_name"><p>buffer</p></td>
1568 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1569 <td class="parameter_annotations"> </td>
1570 </tr>
1571 <tr>
1572 <td class="parameter_name"><p>length</p></td>
1573 <td class="parameter_description"><p>the new length of <em class="parameter"><code>buffer</code></em>
1574 .</p></td>
1575 <td class="parameter_annotations"> </td>
1576 </tr>
1577 </tbody>
1578 </table></div>
1579 </div>
1580 <div class="refsect3">
1581 <a name="hb-buffer-set-length.returns"></a><h4>Returns</h4>
1582 <p><code class="literal">true</code> if <em class="parameter"><code>buffer</code></em>
1583 memory allocation succeeded, <code class="literal">false</code> otherwise.</p>
1584 </div>
1585 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1586 </div>
1587 <hr>
1588 <div class="refsect2">
1589 <a name="hb-buffer-get-length"></a><h3>hb_buffer_get_length ()</h3>
1590 <pre class="programlisting">unsigned <span class="returnvalue">int</span>
1591 hb_buffer_get_length (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1592 <p>Returns the number of items in the buffer.</p>
1593 <div class="refsect3">
1594 <a name="hb-buffer-get-length.parameters"></a><h4>Parameters</h4>
1595 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1596 <colgroup>
1597 <col width="150px" class="parameters_name">
1598 <col class="parameters_description">
1599 <col width="200px" class="parameters_annotations">
1600 </colgroup>
1601 <tbody><tr>
1602 <td class="parameter_name"><p>buffer</p></td>
1603 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1604 <td class="parameter_annotations"> </td>
1605 </tr></tbody>
1606 </table></div>
1607 </div>
1608 <div class="refsect3">
1609 <a name="hb-buffer-get-length.returns"></a><h4>Returns</h4>
1610 <p>The <em class="parameter"><code>buffer</code></em>
1611 length.
1612 The value valid as long as buffer has not been modified.</p>
1613 </div>
1614 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1615 </div>
1616 <hr>
1617 <div class="refsect2">
1618 <a name="hb-buffer-set-segment-properties"></a><h3>hb_buffer_set_segment_properties ()</h3>
1619 <pre class="programlisting"><span class="returnvalue">void</span>
1620 hb_buffer_set_segment_properties (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1621                                   <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *props</code></em>);</pre>
1622 <p>Sets the segment properties of the buffer, a shortcut for calling
1623 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-direction" title="hb_buffer_set_direction ()"><code class="function">hb_buffer_set_direction()</code></a>, <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-script" title="hb_buffer_set_script ()"><code class="function">hb_buffer_set_script()</code></a> and
1624 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-language" title="hb_buffer_set_language ()"><code class="function">hb_buffer_set_language()</code></a> individually.</p>
1625 <div class="refsect3">
1626 <a name="hb-buffer-set-segment-properties.parameters"></a><h4>Parameters</h4>
1627 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1628 <colgroup>
1629 <col width="150px" class="parameters_name">
1630 <col class="parameters_description">
1631 <col width="200px" class="parameters_annotations">
1632 </colgroup>
1633 <tbody>
1634 <tr>
1635 <td class="parameter_name"><p>buffer</p></td>
1636 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1637 <td class="parameter_annotations"> </td>
1638 </tr>
1639 <tr>
1640 <td class="parameter_name"><p>props</p></td>
1641 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> to use.</p></td>
1642 <td class="parameter_annotations"> </td>
1643 </tr>
1644 </tbody>
1645 </table></div>
1646 </div>
1647 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
1648 </div>
1649 <hr>
1650 <div class="refsect2">
1651 <a name="hb-buffer-get-segment-properties"></a><h3>hb_buffer_get_segment_properties ()</h3>
1652 <pre class="programlisting"><span class="returnvalue">void</span>
1653 hb_buffer_get_segment_properties (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1654                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *props</code></em>);</pre>
1655 <p>Sets <em class="parameter"><code>props</code></em>
1656  to the <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> of <em class="parameter"><code>buffer</code></em>
1657 .</p>
1658 <div class="refsect3">
1659 <a name="hb-buffer-get-segment-properties.parameters"></a><h4>Parameters</h4>
1660 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1661 <colgroup>
1662 <col width="150px" class="parameters_name">
1663 <col class="parameters_description">
1664 <col width="200px" class="parameters_annotations">
1665 </colgroup>
1666 <tbody>
1667 <tr>
1668 <td class="parameter_name"><p>buffer</p></td>
1669 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1670 <td class="parameter_annotations"> </td>
1671 </tr>
1672 <tr>
1673 <td class="parameter_name"><p>props</p></td>
1674 <td class="parameter_description"><p> the output <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a>. </p></td>
1675 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1676 </tr>
1677 </tbody>
1678 </table></div>
1679 </div>
1680 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
1681 </div>
1682 <hr>
1683 <div class="refsect2">
1684 <a name="hb-buffer-guess-segment-properties"></a><h3>hb_buffer_guess_segment_properties ()</h3>
1685 <pre class="programlisting"><span class="returnvalue">void</span>
1686 hb_buffer_guess_segment_properties (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1687 <p>Sets unset buffer segment properties based on buffer Unicode
1688 contents.  If buffer is not empty, it must have content type
1689 <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-CONTENT-TYPE-UNICODE:CAPS"><code class="literal">HB_BUFFER_CONTENT_TYPE_UNICODE</code></a>.</p>
1690 <p>If buffer script is not set (ie. is <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-INVALID:CAPS"><code class="literal">HB_SCRIPT_INVALID</code></a>), it
1691 will be set to the Unicode script of the first character in
1692 the buffer that has a script other than <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-COMMON:CAPS"><code class="literal">HB_SCRIPT_COMMON</code></a>,
1693 <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-INHERITED:CAPS"><code class="literal">HB_SCRIPT_INHERITED</code></a>, and <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-UNKNOWN:CAPS"><code class="literal">HB_SCRIPT_UNKNOWN</code></a>.</p>
1694 <p>Next, if buffer direction is not set (ie. is <a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-INVALID:CAPS"><code class="literal">HB_DIRECTION_INVALID</code></a>),
1695 it will be set to the natural horizontal direction of the
1696 buffer script as returned by <a class="link" href="harfbuzz-hb-common.html#hb-script-get-horizontal-direction" title="hb_script_get_horizontal_direction ()"><code class="function">hb_script_get_horizontal_direction()</code></a>.
1697 If <a class="link" href="harfbuzz-hb-common.html#hb-script-get-horizontal-direction" title="hb_script_get_horizontal_direction ()"><code class="function">hb_script_get_horizontal_direction()</code></a> returns <a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-INVALID:CAPS"><code class="literal">HB_DIRECTION_INVALID</code></a>,
1698 then <a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-LTR:CAPS"><code class="literal">HB_DIRECTION_LTR</code></a> is used.</p>
1699 <p>Finally, if buffer language is not set (ie. is <a class="link" href="harfbuzz-hb-common.html#HB-LANGUAGE-INVALID:CAPS" title="HB_LANGUAGE_INVALID"><code class="literal">HB_LANGUAGE_INVALID</code></a>),
1700 it will be set to the process's default language as returned by
1701 <a class="link" href="harfbuzz-hb-common.html#hb-language-get-default" title="hb_language_get_default ()"><code class="function">hb_language_get_default()</code></a>.  This may change in the future by
1702 taking buffer script into consideration when choosing a language.
1703 Note that <a class="link" href="harfbuzz-hb-common.html#hb-language-get-default" title="hb_language_get_default ()"><code class="function">hb_language_get_default()</code></a> is NOT threadsafe the first time
1704 it is called.  See documentation for that function for details.</p>
1705 <div class="refsect3">
1706 <a name="hb-buffer-guess-segment-properties.parameters"></a><h4>Parameters</h4>
1707 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1708 <colgroup>
1709 <col width="150px" class="parameters_name">
1710 <col class="parameters_description">
1711 <col width="200px" class="parameters_annotations">
1712 </colgroup>
1713 <tbody><tr>
1714 <td class="parameter_name"><p>buffer</p></td>
1715 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1716 <td class="parameter_annotations"> </td>
1717 </tr></tbody>
1718 </table></div>
1719 </div>
1720 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
1721 </div>
1722 <hr>
1723 <div class="refsect2">
1724 <a name="hb-buffer-set-unicode-funcs"></a><h3>hb_buffer_set_unicode_funcs ()</h3>
1725 <pre class="programlisting"><span class="returnvalue">void</span>
1726 hb_buffer_set_unicode_funcs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1727                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *unicode_funcs</code></em>);</pre>
1728 <div class="refsect3">
1729 <a name="hb-buffer-set-unicode-funcs.parameters"></a><h4>Parameters</h4>
1730 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1731 <colgroup>
1732 <col width="150px" class="parameters_name">
1733 <col class="parameters_description">
1734 <col width="200px" class="parameters_annotations">
1735 </colgroup>
1736 <tbody><tr>
1737 <td class="parameter_name"><p>buffer</p></td>
1738 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1739 <td class="parameter_annotations"> </td>
1740 </tr></tbody>
1741 </table></div>
1742 </div>
1743 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1744 </div>
1745 <hr>
1746 <div class="refsect2">
1747 <a name="hb-buffer-get-unicode-funcs"></a><h3>hb_buffer_get_unicode_funcs ()</h3>
1748 <pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
1749 hb_buffer_get_unicode_funcs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1750 <div class="refsect3">
1751 <a name="hb-buffer-get-unicode-funcs.parameters"></a><h4>Parameters</h4>
1752 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1753 <colgroup>
1754 <col width="150px" class="parameters_name">
1755 <col class="parameters_description">
1756 <col width="200px" class="parameters_annotations">
1757 </colgroup>
1758 <tbody><tr>
1759 <td class="parameter_name"><p>buffer</p></td>
1760 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1761 <td class="parameter_annotations"> </td>
1762 </tr></tbody>
1763 </table></div>
1764 </div>
1765 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1766 </div>
1767 <hr>
1768 <div class="refsect2">
1769 <a name="hb-buffer-set-user-data"></a><h3>hb_buffer_set_user_data ()</h3>
1770 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
1771 hb_buffer_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1772                          <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
1773                          <em class="parameter"><code><span class="type">void</span> *data</code></em>,
1774                          <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
1775                          <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
1776 <p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
1777 <div class="refsect3">
1778 <a name="hb-buffer-set-user-data.parameters"></a><h4>Parameters</h4>
1779 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1780 <colgroup>
1781 <col width="150px" class="parameters_name">
1782 <col class="parameters_description">
1783 <col width="200px" class="parameters_annotations">
1784 </colgroup>
1785 <tbody><tr>
1786 <td class="parameter_name"><p>buffer</p></td>
1787 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1788 <td class="parameter_annotations"> </td>
1789 </tr></tbody>
1790 </table></div>
1791 </div>
1792 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1793 </div>
1794 <hr>
1795 <div class="refsect2">
1796 <a name="hb-buffer-get-user-data"></a><h3>hb_buffer_get_user_data ()</h3>
1797 <pre class="programlisting"><span class="returnvalue">void</span> *
1798 hb_buffer_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1799                          <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
1800 <p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
1801 <div class="refsect3">
1802 <a name="hb-buffer-get-user-data.parameters"></a><h4>Parameters</h4>
1803 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1804 <colgroup>
1805 <col width="150px" class="parameters_name">
1806 <col class="parameters_description">
1807 <col width="200px" class="parameters_annotations">
1808 </colgroup>
1809 <tbody><tr>
1810 <td class="parameter_name"><p>buffer</p></td>
1811 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1812 <td class="parameter_annotations"> </td>
1813 </tr></tbody>
1814 </table></div>
1815 </div>
1816 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1817 </div>
1818 <hr>
1819 <div class="refsect2">
1820 <a name="hb-buffer-get-glyph-infos"></a><h3>hb_buffer_get_glyph_infos ()</h3>
1821 <pre class="programlisting"><span class="returnvalue">hb_glyph_info_t</span> *
1822 hb_buffer_get_glyph_infos (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1823                            <em class="parameter"><code>unsigned <span class="type">int</span> *length</code></em>);</pre>
1824 <p>Returns <em class="parameter"><code>buffer</code></em>
1825  glyph information array.  Returned pointer
1826 is valid as long as <em class="parameter"><code>buffer</code></em>
1827  contents are not modified.</p>
1828 <div class="refsect3">
1829 <a name="hb-buffer-get-glyph-infos.parameters"></a><h4>Parameters</h4>
1830 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1831 <colgroup>
1832 <col width="150px" class="parameters_name">
1833 <col class="parameters_description">
1834 <col width="200px" class="parameters_annotations">
1835 </colgroup>
1836 <tbody>
1837 <tr>
1838 <td class="parameter_name"><p>buffer</p></td>
1839 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1840 <td class="parameter_annotations"> </td>
1841 </tr>
1842 <tr>
1843 <td class="parameter_name"><p>length</p></td>
1844 <td class="parameter_description"><p> output array length. </p></td>
1845 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1846 </tr>
1847 </tbody>
1848 </table></div>
1849 </div>
1850 <div class="refsect3">
1851 <a name="hb-buffer-get-glyph-infos.returns"></a><h4>Returns</h4>
1852 <p>The <em class="parameter"><code>buffer</code></em>
1853 glyph information array.
1854 The value valid as long as buffer has not been modified. </p>
1855 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
1856 </div>
1857 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1858 </div>
1859 <hr>
1860 <div class="refsect2">
1861 <a name="hb-buffer-get-glyph-positions"></a><h3>hb_buffer_get_glyph_positions ()</h3>
1862 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="returnvalue">hb_glyph_position_t</span></a> *
1863 hb_buffer_get_glyph_positions (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1864                                <em class="parameter"><code>unsigned <span class="type">int</span> *length</code></em>);</pre>
1865 <p>Returns <em class="parameter"><code>buffer</code></em>
1866  glyph position array.  Returned pointer
1867 is valid as long as <em class="parameter"><code>buffer</code></em>
1868  contents are not modified.</p>
1869 <div class="refsect3">
1870 <a name="hb-buffer-get-glyph-positions.parameters"></a><h4>Parameters</h4>
1871 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1872 <colgroup>
1873 <col width="150px" class="parameters_name">
1874 <col class="parameters_description">
1875 <col width="200px" class="parameters_annotations">
1876 </colgroup>
1877 <tbody>
1878 <tr>
1879 <td class="parameter_name"><p>buffer</p></td>
1880 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1881 <td class="parameter_annotations"> </td>
1882 </tr>
1883 <tr>
1884 <td class="parameter_name"><p>length</p></td>
1885 <td class="parameter_description"><p> output length. </p></td>
1886 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1887 </tr>
1888 </tbody>
1889 </table></div>
1890 </div>
1891 <div class="refsect3">
1892 <a name="hb-buffer-get-glyph-positions.returns"></a><h4>Returns</h4>
1893 <p>The <em class="parameter"><code>buffer</code></em>
1894 glyph position array.
1895 The value valid as long as buffer has not been modified. </p>
1896 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
1897 </div>
1898 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
1899 </div>
1900 <hr>
1901 <div class="refsect2">
1902 <a name="hb-buffer-get-invisible-glyph"></a><h3>hb_buffer_get_invisible_glyph ()</h3>
1903 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
1904 hb_buffer_get_invisible_glyph (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
1905 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-invisible-glyph" title="hb_buffer_set_invisible_glyph ()"><code class="function">hb_buffer_set_invisible_glyph()</code></a>.</p>
1906 <div class="refsect3">
1907 <a name="hb-buffer-get-invisible-glyph.parameters"></a><h4>Parameters</h4>
1908 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1909 <colgroup>
1910 <col width="150px" class="parameters_name">
1911 <col class="parameters_description">
1912 <col width="200px" class="parameters_annotations">
1913 </colgroup>
1914 <tbody><tr>
1915 <td class="parameter_name"><p>buffer</p></td>
1916 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1917 <td class="parameter_annotations"> </td>
1918 </tr></tbody>
1919 </table></div>
1920 </div>
1921 <div class="refsect3">
1922 <a name="hb-buffer-get-invisible-glyph.returns"></a><h4>Returns</h4>
1923 <p>The <em class="parameter"><code>buffer</code></em>
1924 invisible <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a>.</p>
1925 </div>
1926 <p class="since">Since: <a class="link" href="api-index-2-0-0.html#api-index-2.0.0">2.0.0</a></p>
1927 </div>
1928 <hr>
1929 <div class="refsect2">
1930 <a name="hb-buffer-set-invisible-glyph"></a><h3>hb_buffer_set_invisible_glyph ()</h3>
1931 <pre class="programlisting"><span class="returnvalue">void</span>
1932 hb_buffer_set_invisible_glyph (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1933                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> invisible</code></em>);</pre>
1934 <p>Sets the <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> that replaces invisible characters in
1935 the shaping result.  If set to zero (default), the glyph for the
1936 U+0020 SPACE character is used.  Otherwise, this value is used
1937 verbatim.</p>
1938 <div class="refsect3">
1939 <a name="hb-buffer-set-invisible-glyph.parameters"></a><h4>Parameters</h4>
1940 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1941 <colgroup>
1942 <col width="150px" class="parameters_name">
1943 <col class="parameters_description">
1944 <col width="200px" class="parameters_annotations">
1945 </colgroup>
1946 <tbody>
1947 <tr>
1948 <td class="parameter_name"><p>buffer</p></td>
1949 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1950 <td class="parameter_annotations"> </td>
1951 </tr>
1952 <tr>
1953 <td class="parameter_name"><p>invisible</p></td>
1954 <td class="parameter_description"><p>the invisible <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a></p></td>
1955 <td class="parameter_annotations"> </td>
1956 </tr>
1957 </tbody>
1958 </table></div>
1959 </div>
1960 <p class="since">Since: <a class="link" href="api-index-2-0-0.html#api-index-2.0.0">2.0.0</a></p>
1961 </div>
1962 <hr>
1963 <div class="refsect2">
1964 <a name="hb-buffer-set-replacement-codepoint"></a><h3>hb_buffer_set_replacement_codepoint ()</h3>
1965 <pre class="programlisting"><span class="returnvalue">void</span>
1966 hb_buffer_set_replacement_codepoint (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
1967                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> replacement</code></em>);</pre>
1968 <p>Sets the <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> that replaces invalid entries for a given encoding
1969 when adding text to <em class="parameter"><code>buffer</code></em>
1970 .</p>
1971 <p>Default is <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-REPLACEMENT-CODEPOINT-DEFAULT:CAPS" title="HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT"><code class="literal">HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT</code></a>.</p>
1972 <div class="refsect3">
1973 <a name="hb-buffer-set-replacement-codepoint.parameters"></a><h4>Parameters</h4>
1974 <div class="informaltable"><table class="informaltable" width="100%" border="0">
1975 <colgroup>
1976 <col width="150px" class="parameters_name">
1977 <col class="parameters_description">
1978 <col width="200px" class="parameters_annotations">
1979 </colgroup>
1980 <tbody>
1981 <tr>
1982 <td class="parameter_name"><p>buffer</p></td>
1983 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
1984 <td class="parameter_annotations"> </td>
1985 </tr>
1986 <tr>
1987 <td class="parameter_name"><p>replacement</p></td>
1988 <td class="parameter_description"><p>the replacement <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a></p></td>
1989 <td class="parameter_annotations"> </td>
1990 </tr>
1991 </tbody>
1992 </table></div>
1993 </div>
1994 <p class="since">Since: <a class="link" href="api-index-0-9-31.html#api-index-0.9.31">0.9.31</a></p>
1995 </div>
1996 <hr>
1997 <div class="refsect2">
1998 <a name="hb-buffer-get-replacement-codepoint"></a><h3>hb_buffer_get_replacement_codepoint ()</h3>
1999 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
2000 hb_buffer_get_replacement_codepoint (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
2001 <p>See <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()"><code class="function">hb_buffer_set_replacement_codepoint()</code></a>.</p>
2002 <div class="refsect3">
2003 <a name="hb-buffer-get-replacement-codepoint.parameters"></a><h4>Parameters</h4>
2004 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2005 <colgroup>
2006 <col width="150px" class="parameters_name">
2007 <col class="parameters_description">
2008 <col width="200px" class="parameters_annotations">
2009 </colgroup>
2010 <tbody><tr>
2011 <td class="parameter_name"><p>buffer</p></td>
2012 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
2013 <td class="parameter_annotations"> </td>
2014 </tr></tbody>
2015 </table></div>
2016 </div>
2017 <div class="refsect3">
2018 <a name="hb-buffer-get-replacement-codepoint.returns"></a><h4>Returns</h4>
2019 <p>The <em class="parameter"><code>buffer</code></em>
2020 replacement <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a>.</p>
2021 </div>
2022 <p class="since">Since: <a class="link" href="api-index-0-9-31.html#api-index-0.9.31">0.9.31</a></p>
2023 </div>
2024 <hr>
2025 <div class="refsect2">
2026 <a name="hb-buffer-normalize-glyphs"></a><h3>hb_buffer_normalize_glyphs ()</h3>
2027 <pre class="programlisting"><span class="returnvalue">void</span>
2028 hb_buffer_normalize_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
2029 <p>Reorders a glyph buffer to have canonical in-cluster glyph order / position.
2030 The resulting clusters should behave identical to pre-reordering clusters.</p>
2031 <div class="note">This has nothing to do with Unicode normalization.</div>
2032 <div class="refsect3">
2033 <a name="hb-buffer-normalize-glyphs.parameters"></a><h4>Parameters</h4>
2034 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2035 <colgroup>
2036 <col width="150px" class="parameters_name">
2037 <col class="parameters_description">
2038 <col width="200px" class="parameters_annotations">
2039 </colgroup>
2040 <tbody><tr>
2041 <td class="parameter_name"><p>buffer</p></td>
2042 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
2043 <td class="parameter_annotations"> </td>
2044 </tr></tbody>
2045 </table></div>
2046 </div>
2047 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
2048 </div>
2049 <hr>
2050 <div class="refsect2">
2051 <a name="hb-buffer-reverse"></a><h3>hb_buffer_reverse ()</h3>
2052 <pre class="programlisting"><span class="returnvalue">void</span>
2053 hb_buffer_reverse (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
2054 <p>Reverses buffer contents.</p>
2055 <div class="refsect3">
2056 <a name="hb-buffer-reverse.parameters"></a><h4>Parameters</h4>
2057 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2058 <colgroup>
2059 <col width="150px" class="parameters_name">
2060 <col class="parameters_description">
2061 <col width="200px" class="parameters_annotations">
2062 </colgroup>
2063 <tbody><tr>
2064 <td class="parameter_name"><p>buffer</p></td>
2065 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
2066 <td class="parameter_annotations"> </td>
2067 </tr></tbody>
2068 </table></div>
2069 </div>
2070 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
2071 </div>
2072 <hr>
2073 <div class="refsect2">
2074 <a name="hb-buffer-reverse-range"></a><h3>hb_buffer_reverse_range ()</h3>
2075 <pre class="programlisting"><span class="returnvalue">void</span>
2076 hb_buffer_reverse_range (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
2077                          <em class="parameter"><code>unsigned <span class="type">int</span> start</code></em>,
2078                          <em class="parameter"><code>unsigned <span class="type">int</span> end</code></em>);</pre>
2079 <p>Reverses buffer contents between start to end.</p>
2080 <div class="refsect3">
2081 <a name="hb-buffer-reverse-range.parameters"></a><h4>Parameters</h4>
2082 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2083 <colgroup>
2084 <col width="150px" class="parameters_name">
2085 <col class="parameters_description">
2086 <col width="200px" class="parameters_annotations">
2087 </colgroup>
2088 <tbody>
2089 <tr>
2090 <td class="parameter_name"><p>buffer</p></td>
2091 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
2092 <td class="parameter_annotations"> </td>
2093 </tr>
2094 <tr>
2095 <td class="parameter_name"><p>start</p></td>
2096 <td class="parameter_description"><p>start index.</p></td>
2097 <td class="parameter_annotations"> </td>
2098 </tr>
2099 <tr>
2100 <td class="parameter_name"><p>end</p></td>
2101 <td class="parameter_description"><p>end index.</p></td>
2102 <td class="parameter_annotations"> </td>
2103 </tr>
2104 </tbody>
2105 </table></div>
2106 </div>
2107 <p class="since">Since: <a class="link" href="api-index-0-9-41.html#api-index-0.9.41">0.9.41</a></p>
2108 </div>
2109 <hr>
2110 <div class="refsect2">
2111 <a name="hb-buffer-reverse-clusters"></a><h3>hb_buffer_reverse_clusters ()</h3>
2112 <pre class="programlisting"><span class="returnvalue">void</span>
2113 hb_buffer_reverse_clusters (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
2114 <p>Reverses buffer clusters.  That is, the buffer contents are
2115 reversed, then each cluster (consecutive items having the
2116 same cluster number) are reversed again.</p>
2117 <div class="refsect3">
2118 <a name="hb-buffer-reverse-clusters.parameters"></a><h4>Parameters</h4>
2119 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2120 <colgroup>
2121 <col width="150px" class="parameters_name">
2122 <col class="parameters_description">
2123 <col width="200px" class="parameters_annotations">
2124 </colgroup>
2125 <tbody><tr>
2126 <td class="parameter_name"><p>buffer</p></td>
2127 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
2128 <td class="parameter_annotations"> </td>
2129 </tr></tbody>
2130 </table></div>
2131 </div>
2132 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
2133 </div>
2134 <hr>
2135 <div class="refsect2">
2136 <a name="hb-buffer-serialize-glyphs"></a><h3>hb_buffer_serialize_glyphs ()</h3>
2137 <pre class="programlisting">unsigned <span class="returnvalue">int</span>
2138 hb_buffer_serialize_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
2139                             <em class="parameter"><code>unsigned <span class="type">int</span> start</code></em>,
2140                             <em class="parameter"><code>unsigned <span class="type">int</span> end</code></em>,
2141                             <em class="parameter"><code><span class="type">char</span> *buf</code></em>,
2142                             <em class="parameter"><code>unsigned <span class="type">int</span> buf_size</code></em>,
2143                             <em class="parameter"><code>unsigned <span class="type">int</span> *buf_consumed</code></em>,
2144                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
2145                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> format</code></em>,
2146                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t"><span class="type">hb_buffer_serialize_flags_t</span></a> flags</code></em>);</pre>
2147 <p>Serializes <em class="parameter"><code>buffer</code></em>
2148  into a textual representation of its glyph content,
2149 useful for showing the contents of the buffer, for example during debugging.
2150 There are currently two supported serialization formats:</p>
2151 <div class="refsect3">
2152 <a name="id-1.3.4.3.11.48.5"></a><h4>text</h4>
2153 <p>A human-readable, plain text format.
2154 The serialized glyphs will look something like:</p>
2155 <p><code class="literal">
2156 [uni0651=0@518,0+0|uni0628=0+1897]
2157 </code></p>
2158 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
2159 <li class="listitem"><p>The serialized glyphs are delimited with <code class="literal">[</code> and <code class="literal">]</code>.</p></li>
2160 <li class="listitem"><p>Glyphs are separated with <code class="literal">|</code></p></li>
2161 <li class="listitem">
2162 <p>Each glyph starts with glyph name, or glyph index if
2163 <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-SERIALIZE-FLAG-NO-GLYPH-NAMES:CAPS"><span class="type">HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES</span></a> flag is set. Then,</p>
2164 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
2165 <li class="listitem"><p>If <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-SERIALIZE-FLAG-NO-CLUSTERS:CAPS"><span class="type">HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS</span></a> is not set, <code class="literal">=</code> then <span class="type">hb_glyph_info_t.cluster</span>.</p></li>
2166 <li class="listitem">
2167 <p>If <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-SERIALIZE-FLAG-NO-POSITIONS:CAPS"><span class="type">HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS</span></a> is not set, the <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="type">hb_glyph_position_t</span></a> in the format:</p>
2168 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: square; ">
2169 <li class="listitem"><p>If both <span class="type">hb_glyph_position_t.x_offset</span> and <span class="type">hb_glyph_position_t.y_offset</span> are not 0, <code class="literal">@x_offset,y_offset</code>. Then,</p></li>
2170 <li class="listitem"><p><code class="literal">+x_advance</code>, then <code class="literal">,y_advance</code> if <span class="type">hb_glyph_position_t.y_advance</span> is not 0. Then,</p></li>
2171 </ul></div>
2172 </li>
2173 <li class="listitem"><p>If <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-SERIALIZE-FLAG-GLYPH-EXTENTS:CAPS"><span class="type">HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS</span></a> is set, the
2174 <span class="type">hb_glyph_extents_t</span> in the format
2175 <code class="literal">&lt;x_bearing,y_bearing,width,height&gt;</code></p></li>
2176 </ul></div>
2177 </li>
2178 </ul></div>
2179 </div>
2180 <div class="refsect3">
2181 <a name="id-1.3.4.3.11.48.6"></a><h4>json</h4>
2182 <p>TODO.</p>
2183 </div>
2184 <div class="refsect3">
2185 <a name="hb-buffer-serialize-glyphs.parameters"></a><h4>Parameters</h4>
2186 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2187 <colgroup>
2188 <col width="150px" class="parameters_name">
2189 <col class="parameters_description">
2190 <col width="200px" class="parameters_annotations">
2191 </colgroup>
2192 <tbody>
2193 <tr>
2194 <td class="parameter_name"><p>buffer</p></td>
2195 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> buffer.</p></td>
2196 <td class="parameter_annotations"> </td>
2197 </tr>
2198 <tr>
2199 <td class="parameter_name"><p>start</p></td>
2200 <td class="parameter_description"><p>the first item in <em class="parameter"><code>buffer</code></em>
2201 to serialize.</p></td>
2202 <td class="parameter_annotations"> </td>
2203 </tr>
2204 <tr>
2205 <td class="parameter_name"><p>end</p></td>
2206 <td class="parameter_description"><p>the last item in <em class="parameter"><code>buffer</code></em>
2207 to serialize.</p></td>
2208 <td class="parameter_annotations"> </td>
2209 </tr>
2210 <tr>
2211 <td class="parameter_name"><p>buf</p></td>
2212 <td class="parameter_description"><p> output string to
2213 write serialized buffer into. </p></td>
2214 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=buf_size][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> uint8_t]</span></td>
2215 </tr>
2216 <tr>
2217 <td class="parameter_name"><p>buf_size</p></td>
2218 <td class="parameter_description"><p>the size of <em class="parameter"><code>buf</code></em>
2219 .</p></td>
2220 <td class="parameter_annotations"> </td>
2221 </tr>
2222 <tr>
2223 <td class="parameter_name"><p>buf_consumed</p></td>
2224 <td class="parameter_description"><p> if not <code class="literal">NULL</code>, will be set to the number of byes written into <em class="parameter"><code>buf</code></em>
2225 . </p></td>
2226 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
2227 </tr>
2228 <tr>
2229 <td class="parameter_name"><p>font</p></td>
2230 <td class="parameter_description"><p> the <a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> used to shape this buffer, needed to
2231 read glyph names and extents. If <code class="literal">NULL</code>, and empty font will be used. </p></td>
2232 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
2233 </tr>
2234 <tr>
2235 <td class="parameter_name"><p>format</p></td>
2236 <td class="parameter_description"><p>the <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> to use for formatting the output.</p></td>
2237 <td class="parameter_annotations"> </td>
2238 </tr>
2239 <tr>
2240 <td class="parameter_name"><p>flags</p></td>
2241 <td class="parameter_description"><p>the <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t"><span class="type">hb_buffer_serialize_flags_t</span></a> that control what glyph properties
2242 to serialize.</p></td>
2243 <td class="parameter_annotations"> </td>
2244 </tr>
2245 </tbody>
2246 </table></div>
2247 </div>
2248 <div class="refsect3">
2249 <a name="hb-buffer-serialize-glyphs.returns"></a><h4>Returns</h4>
2250 <p>The number of serialized items.</p>
2251 </div>
2252 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2253 </div>
2254 <hr>
2255 <div class="refsect2">
2256 <a name="hb-buffer-deserialize-glyphs"></a><h3>hb_buffer_deserialize_glyphs ()</h3>
2257 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
2258 hb_buffer_deserialize_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
2259                               <em class="parameter"><code>const <span class="type">char</span> *buf</code></em>,
2260                               <em class="parameter"><code><span class="type">int</span> buf_len</code></em>,
2261                               <em class="parameter"><code>const <span class="type">char</span> **end_ptr</code></em>,
2262                               <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
2263                               <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> format</code></em>);</pre>
2264 <div class="refsect3">
2265 <a name="hb-buffer-deserialize-glyphs.parameters"></a><h4>Parameters</h4>
2266 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2267 <colgroup>
2268 <col width="150px" class="parameters_name">
2269 <col class="parameters_description">
2270 <col width="200px" class="parameters_annotations">
2271 </colgroup>
2272 <tbody>
2273 <tr>
2274 <td class="parameter_name"><p>buffer</p></td>
2275 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> buffer.</p></td>
2276 <td class="parameter_annotations"> </td>
2277 </tr>
2278 <tr>
2279 <td class="parameter_name"><p>buf</p></td>
2280 <td class="parameter_description"><p>. </p></td>
2281 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=buf_len]</span></td>
2282 </tr>
2283 <tr>
2284 <td class="parameter_name"><p>end_ptr</p></td>
2285 <td class="parameter_description"><p>. </p></td>
2286 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
2287 </tr>
2288 </tbody>
2289 </table></div>
2290 </div>
2291 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2292 </div>
2293 <hr>
2294 <div class="refsect2">
2295 <a name="hb-buffer-serialize-format-from-string"></a><h3>hb_buffer_serialize_format_from_string ()</h3>
2296 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="returnvalue">hb_buffer_serialize_format_t</span></a>
2297 hb_buffer_serialize_format_from_string
2298                                (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
2299                                 <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
2300 <p>Parses a string into an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a>. Does not check if
2301 <em class="parameter"><code>str</code></em>
2302  is a valid buffer serialization format, use
2303 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-list-formats" title="hb_buffer_serialize_list_formats ()"><code class="function">hb_buffer_serialize_list_formats()</code></a> to get the list of supported formats.</p>
2304 <div class="refsect3">
2305 <a name="hb-buffer-serialize-format-from-string.parameters"></a><h4>Parameters</h4>
2306 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2307 <colgroup>
2308 <col width="150px" class="parameters_name">
2309 <col class="parameters_description">
2310 <col width="200px" class="parameters_annotations">
2311 </colgroup>
2312 <tbody>
2313 <tr>
2314 <td class="parameter_name"><p>str</p></td>
2315 <td class="parameter_description"><p> a string to parse. </p></td>
2316 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> uint8_t]</span></td>
2317 </tr>
2318 <tr>
2319 <td class="parameter_name"><p>len</p></td>
2320 <td class="parameter_description"><p>length of <em class="parameter"><code>str</code></em>
2321 , or -1 if string is <code class="literal">NULL</code> terminated</p></td>
2322 <td class="parameter_annotations"> </td>
2323 </tr>
2324 </tbody>
2325 </table></div>
2326 </div>
2327 <div class="refsect3">
2328 <a name="hb-buffer-serialize-format-from-string.returns"></a><h4>Returns</h4>
2329 <p>The parsed <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a>.</p>
2330 </div>
2331 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2332 </div>
2333 <hr>
2334 <div class="refsect2">
2335 <a name="hb-buffer-serialize-format-to-string"></a><h3>hb_buffer_serialize_format_to_string ()</h3>
2336 <pre class="programlisting">const <span class="returnvalue">char</span> *
2337 hb_buffer_serialize_format_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> format</code></em>);</pre>
2338 <p>Converts <em class="parameter"><code>format</code></em>
2339  to the string corresponding it, or <code class="literal">NULL</code> if it is not a valid
2340 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a>.</p>
2341 <div class="refsect3">
2342 <a name="hb-buffer-serialize-format-to-string.parameters"></a><h4>Parameters</h4>
2343 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2344 <colgroup>
2345 <col width="150px" class="parameters_name">
2346 <col class="parameters_description">
2347 <col width="200px" class="parameters_annotations">
2348 </colgroup>
2349 <tbody><tr>
2350 <td class="parameter_name"><p>format</p></td>
2351 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> to convert.</p></td>
2352 <td class="parameter_annotations"> </td>
2353 </tr></tbody>
2354 </table></div>
2355 </div>
2356 <div class="refsect3">
2357 <a name="hb-buffer-serialize-format-to-string.returns"></a><h4>Returns</h4>
2358 <p>A <code class="literal">NULL</code> terminated string corresponding to <em class="parameter"><code>format</code></em>
2359 . Should not be freed. </p>
2360 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
2361 </div>
2362 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2363 </div>
2364 <hr>
2365 <div class="refsect2">
2366 <a name="hb-buffer-serialize-list-formats"></a><h3>hb_buffer_serialize_list_formats ()</h3>
2367 <pre class="programlisting">const <span class="returnvalue">char</span> **
2368 hb_buffer_serialize_list_formats (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
2369 <p>Returns a list of supported buffer serialization formats.</p>
2370 <div class="refsect3">
2371 <a name="hb-buffer-serialize-list-formats.returns"></a><h4>Returns</h4>
2372 <p>A string array of buffer serialization formats. Should not be freed. </p>
2373 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
2374 </div>
2375 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2376 </div>
2377 <hr>
2378 <div class="refsect2">
2379 <a name="hb-segment-properties-equal"></a><h3>hb_segment_properties_equal ()</h3>
2380 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
2381 hb_segment_properties_equal (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *a</code></em>,
2382                              <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *b</code></em>);</pre>
2383 <p>Checks the equality of two <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a>'s.</p>
2384 <div class="refsect3">
2385 <a name="hb-segment-properties-equal.parameters"></a><h4>Parameters</h4>
2386 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2387 <colgroup>
2388 <col width="150px" class="parameters_name">
2389 <col class="parameters_description">
2390 <col width="200px" class="parameters_annotations">
2391 </colgroup>
2392 <tbody>
2393 <tr>
2394 <td class="parameter_name"><p>a</p></td>
2395 <td class="parameter_description"><p>first <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> to compare.</p></td>
2396 <td class="parameter_annotations"> </td>
2397 </tr>
2398 <tr>
2399 <td class="parameter_name"><p>b</p></td>
2400 <td class="parameter_description"><p>second <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> to compare.</p></td>
2401 <td class="parameter_annotations"> </td>
2402 </tr>
2403 </tbody>
2404 </table></div>
2405 </div>
2406 <div class="refsect3">
2407 <a name="hb-segment-properties-equal.returns"></a><h4>Returns</h4>
2408 <p><code class="literal">true</code> if all properties of <em class="parameter"><code>a</code></em>
2409 equal those of <em class="parameter"><code>b</code></em>
2410 , false otherwise.</p>
2411 </div>
2412 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2413 </div>
2414 <hr>
2415 <div class="refsect2">
2416 <a name="hb-segment-properties-hash"></a><h3>hb_segment_properties_hash ()</h3>
2417 <pre class="programlisting">unsigned <span class="returnvalue">int</span>
2418 hb_segment_properties_hash (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *p</code></em>);</pre>
2419 <p>Creates a hash representing <em class="parameter"><code>p</code></em>
2420 .</p>
2421 <div class="refsect3">
2422 <a name="hb-segment-properties-hash.parameters"></a><h4>Parameters</h4>
2423 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2424 <colgroup>
2425 <col width="150px" class="parameters_name">
2426 <col class="parameters_description">
2427 <col width="200px" class="parameters_annotations">
2428 </colgroup>
2429 <tbody><tr>
2430 <td class="parameter_name"><p>p</p></td>
2431 <td class="parameter_description"><p><a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> to hash.</p></td>
2432 <td class="parameter_annotations"> </td>
2433 </tr></tbody>
2434 </table></div>
2435 </div>
2436 <div class="refsect3">
2437 <a name="hb-segment-properties-hash.returns"></a><h4>Returns</h4>
2438 <p>A hash of <em class="parameter"><code>p</code></em>
2439 .</p>
2440 </div>
2441 <p class="since">Since: <a class="link" href="api-index-0-9-7.html#api-index-0.9.7">0.9.7</a></p>
2442 </div>
2443 <hr>
2444 <div class="refsect2">
2445 <a name="hb-buffer-diff"></a><h3>hb_buffer_diff ()</h3>
2446 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-diff-flags-t" title="enum hb_buffer_diff_flags_t"><span class="returnvalue">hb_buffer_diff_flags_t</span></a>
2447 hb_buffer_diff (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
2448                 <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *reference</code></em>,
2449                 <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> dottedcircle_glyph</code></em>,
2450                 <em class="parameter"><code>unsigned <span class="type">int</span> position_fuzz</code></em>);</pre>
2451 <p>If dottedcircle_glyph is (hb_codepoint_t) -1 then <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-DIFF-FLAG-DOTTED-CIRCLE-PRESENT:CAPS"><code class="literal">HB_BUFFER_DIFF_FLAG_DOTTED_CIRCLE_PRESENT</code></a>
2452 and <a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-DIFF-FLAG-NOTDEF-PRESENT:CAPS"><code class="literal">HB_BUFFER_DIFF_FLAG_NOTDEF_PRESENT</code></a> are never returned.  This should be used by most
2453 callers if just comparing two buffers is needed.</p>
2454 <div class="refsect3">
2455 <a name="hb-buffer-diff.parameters"></a><h4>Parameters</h4>
2456 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2457 <colgroup>
2458 <col width="150px" class="parameters_name">
2459 <col class="parameters_description">
2460 <col width="200px" class="parameters_annotations">
2461 </colgroup>
2462 <tbody>
2463 <tr>
2464 <td class="parameter_name"><p>buffer</p></td>
2465 <td class="parameter_description"><p>a buffer.</p></td>
2466 <td class="parameter_annotations"> </td>
2467 </tr>
2468 <tr>
2469 <td class="parameter_name"><p>reference</p></td>
2470 <td class="parameter_description"><p>other buffer to compare to.</p></td>
2471 <td class="parameter_annotations"> </td>
2472 </tr>
2473 <tr>
2474 <td class="parameter_name"><p>dottedcircle_glyph</p></td>
2475 <td class="parameter_description"><p>glyph id of U+25CC DOTTED CIRCLE, or (hb_codepont_t) -1.</p></td>
2476 <td class="parameter_annotations"> </td>
2477 </tr>
2478 <tr>
2479 <td class="parameter_name"><p>position_fuzz</p></td>
2480 <td class="parameter_description"><p>allowed absolute difference in position values.</p></td>
2481 <td class="parameter_annotations"> </td>
2482 </tr>
2483 </tbody>
2484 </table></div>
2485 </div>
2486 <p class="since">Since: <a class="link" href="api-index-1-5-0.html#api-index-1.5.0">1.5.0</a></p>
2487 </div>
2488 <hr>
2489 <div class="refsect2">
2490 <a name="hb-buffer-set-message-func"></a><h3>hb_buffer_set_message_func ()</h3>
2491 <pre class="programlisting"><span class="returnvalue">void</span>
2492 hb_buffer_set_message_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
2493                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-message-func-t" title="hb_buffer_message_func_t ()"><span class="type">hb_buffer_message_func_t</span></a> func</code></em>,
2494                             <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
2495                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
2496 <div class="refsect3">
2497 <a name="hb-buffer-set-message-func.parameters"></a><h4>Parameters</h4>
2498 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2499 <colgroup>
2500 <col width="150px" class="parameters_name">
2501 <col class="parameters_description">
2502 <col width="200px" class="parameters_annotations">
2503 </colgroup>
2504 <tbody>
2505 <tr>
2506 <td class="parameter_name"><p>buffer</p></td>
2507 <td class="parameter_description"><p>an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>.</p></td>
2508 <td class="parameter_annotations"> </td>
2509 </tr>
2510 <tr>
2511 <td class="parameter_name"><p>func</p></td>
2512 <td class="parameter_description"><p>. </p></td>
2513 <td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
2514 </tr>
2515 </tbody>
2516 </table></div>
2517 </div>
2518 <p class="since">Since: <a class="link" href="api-index-1-1-3.html#api-index-1.1.3">1.1.3</a></p>
2519 </div>
2520 <hr>
2521 <div class="refsect2">
2522 <a name="hb-glyph-info-get-glyph-flags"></a><h3>hb_glyph_info_get_glyph_flags ()</h3>
2523 <pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-flags-t" title="enum hb_glyph_flags_t"><span class="returnvalue">hb_glyph_flags_t</span></a>
2524 hb_glyph_info_get_glyph_flags (<em class="parameter"><code>const <span class="type">hb_glyph_info_t</span> *info</code></em>);</pre>
2525 <p>Returns glyph flags encoded within a <span class="type">hb_glyph_info_t</span>.</p>
2526 <div class="refsect3">
2527 <a name="hb-glyph-info-get-glyph-flags.parameters"></a><h4>Parameters</h4>
2528 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2529 <colgroup>
2530 <col width="150px" class="parameters_name">
2531 <col class="parameters_description">
2532 <col width="200px" class="parameters_annotations">
2533 </colgroup>
2534 <tbody><tr>
2535 <td class="parameter_name"><p>info</p></td>
2536 <td class="parameter_description"><p>a <span class="type">hb_glyph_info_t</span>.</p></td>
2537 <td class="parameter_annotations"> </td>
2538 </tr></tbody>
2539 </table></div>
2540 </div>
2541 <div class="refsect3">
2542 <a name="hb-glyph-info-get-glyph-flags.returns"></a><h4>Returns</h4>
2543 <p>The <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-flags-t" title="enum hb_glyph_flags_t"><span class="type">hb_glyph_flags_t</span></a> encoded within <em class="parameter"><code>info</code></em>
2544 .</p>
2545 </div>
2546 <p class="since">Since: <a class="link" href="api-index-1-5-0.html#api-index-1.5.0">1.5.0</a></p>
2547 </div>
2548 <hr>
2549 <div class="refsect2">
2550 <a name="hb-buffer-message-func-t"></a><h3>hb_buffer_message_func_t ()</h3>
2551 <pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
2552 <span class="c_punctuation">(</span>*hb_buffer_message_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
2553                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
2554                              <em class="parameter"><code>const <span class="type">char</span> *message</code></em>,
2555                              <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
2556 </div>
2557 </div>
2558 <div class="refsect1">
2559 <a name="harfbuzz-hb-buffer.other_details"></a><h2>Types and Values</h2>
2560 <div class="refsect2">
2561 <a name="HB-SEGMENT-PROPERTIES-DEFAULT:CAPS"></a><h3>HB_SEGMENT_PROPERTIES_DEFAULT</h3>
2562 <pre class="programlisting">#define             HB_SEGMENT_PROPERTIES_DEFAULT</pre>
2563 </div>
2564 <hr>
2565 <div class="refsect2">
2566 <a name="HB-BUFFER-REPLACEMENT-CODEPOINT-DEFAULT:CAPS"></a><h3>HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT</h3>
2567 <pre class="programlisting">#define HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT 0xFFFDu
2568 </pre>
2569 <p>The default code point for replacing invalid characters in a given encoding.
2570 Set to U+FFFD REPLACEMENT CHARACTER.</p>
2571 <p class="since">Since: <a class="link" href="api-index-0-9-31.html#api-index-0.9.31">0.9.31</a></p>
2572 </div>
2573 <hr>
2574 <div class="refsect2">
2575 <a name="hb-buffer-t"></a><h3>hb_buffer_t</h3>
2576 <pre class="programlisting">typedef struct hb_buffer_t hb_buffer_t;
2577 </pre>
2578 <p>The main structure holding the input text and its properties before shaping,
2579 and output glyphs and their information after shaping.</p>
2580 </div>
2581 <hr>
2582 <div class="refsect2">
2583 <a name="hb-glyph-flags-t"></a><h3>enum hb_glyph_flags_t</h3>
2584 <div class="refsect3">
2585 <a name="hb-glyph-flags-t.members"></a><h4>Members</h4>
2586 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2587 <colgroup>
2588 <col width="300px" class="enum_members_name">
2589 <col class="enum_members_description">
2590 <col width="200px" class="enum_members_annotations">
2591 </colgroup>
2592 <tbody>
2593 <tr>
2594 <td class="enum_member_name"><p><a name="HB-GLYPH-FLAG-UNSAFE-TO-BREAK:CAPS"></a>HB_GLYPH_FLAG_UNSAFE_TO_BREAK</p></td>
2595 <td class="enum_member_description">
2596 <p>Indicates that if input text is broken at the
2597                                    beginning of the cluster this glyph is part of,
2598                                    then both sides need to be re-shaped, as the
2599                                    result might be different.  On the flip side,
2600                                    it means that when this flag is not present,
2601                                    then it's safe to break the glyph-run at the
2602                                    beginning of this cluster, and the two sides
2603                                    represent the exact same result one would get
2604                                    if breaking input text at the beginning of
2605                                    this cluster and shaping the two sides
2606                                    separately.  This can be used to optimize
2607                                    paragraph layout, by avoiding re-shaping
2608                                    of each line after line-breaking, or limiting
2609                                    the reshaping to a small piece around the
2610                                    breaking point only.</p>
2611 </td>
2612 <td class="enum_member_annotations"> </td>
2613 </tr>
2614 <tr>
2615 <td class="enum_member_name"><p><a name="HB-GLYPH-FLAG-DEFINED:CAPS"></a>HB_GLYPH_FLAG_DEFINED</p></td>
2616 <td class="enum_member_description">
2617 <p>All the currently defined flags.</p>
2618 </td>
2619 <td class="enum_member_annotations"> </td>
2620 </tr>
2621 </tbody>
2622 </table></div>
2623 </div>
2624 <p class="since">Since: <a class="link" href="api-index-1-5-0.html#api-index-1.5.0">1.5.0</a></p>
2625 </div>
2626 <hr>
2627 <div class="refsect2">
2628 <a name="hb-glyph-position-t-struct"></a><h3>hb_glyph_position_t</h3>
2629 <pre class="programlisting">typedef struct {
2630   hb_position_t  x_advance;
2631   hb_position_t  y_advance;
2632   hb_position_t  x_offset;
2633   hb_position_t  y_offset;
2634 } hb_glyph_position_t;
2635 </pre>
2636 <p>The <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="type">hb_glyph_position_t</span></a> is the structure that holds the positions of the
2637 glyph in both horizontal and vertical directions. All positions in
2638 <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="type">hb_glyph_position_t</span></a> are relative to the current point.</p>
2639 <div class="refsect3">
2640 <a name="hb-glyph-position-t.members"></a><h4>Members</h4>
2641 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2642 <colgroup>
2643 <col width="300px" class="struct_members_name">
2644 <col class="struct_members_description">
2645 <col width="200px" class="struct_members_annotations">
2646 </colgroup>
2647 <tbody>
2648 <tr>
2649 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> <em class="structfield"><code><a name="hb-glyph-position-t-struct.x-advance"></a>x_advance</code></em>;</p></td>
2650 <td class="struct_member_description"><p>how much the line advances after drawing this glyph when setting
2651 text in horizontal direction.</p></td>
2652 <td class="struct_member_annotations"> </td>
2653 </tr>
2654 <tr>
2655 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> <em class="structfield"><code><a name="hb-glyph-position-t-struct.y-advance"></a>y_advance</code></em>;</p></td>
2656 <td class="struct_member_description"><p>how much the line advances after drawing this glyph when setting
2657 text in vertical direction.</p></td>
2658 <td class="struct_member_annotations"> </td>
2659 </tr>
2660 <tr>
2661 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> <em class="structfield"><code><a name="hb-glyph-position-t-struct.x-offset"></a>x_offset</code></em>;</p></td>
2662 <td class="struct_member_description"><p>how much the glyph moves on the X-axis before drawing it, this
2663 should not affect how much the line advances.</p></td>
2664 <td class="struct_member_annotations"> </td>
2665 </tr>
2666 <tr>
2667 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> <em class="structfield"><code><a name="hb-glyph-position-t-struct.y-offset"></a>y_offset</code></em>;</p></td>
2668 <td class="struct_member_description"><p>how much the glyph moves on the Y-axis before drawing it, this
2669 should not affect how much the line advances.</p></td>
2670 <td class="struct_member_annotations"> </td>
2671 </tr>
2672 </tbody>
2673 </table></div>
2674 </div>
2675 </div>
2676 <hr>
2677 <div class="refsect2">
2678 <a name="hb-buffer-content-type-t"></a><h3>enum hb_buffer_content_type_t</h3>
2679 <div class="refsect3">
2680 <a name="hb-buffer-content-type-t.members"></a><h4>Members</h4>
2681 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2682 <colgroup>
2683 <col width="300px" class="enum_members_name">
2684 <col class="enum_members_description">
2685 <col width="200px" class="enum_members_annotations">
2686 </colgroup>
2687 <tbody>
2688 <tr>
2689 <td class="enum_member_name"><p><a name="HB-BUFFER-CONTENT-TYPE-INVALID:CAPS"></a>HB_BUFFER_CONTENT_TYPE_INVALID</p></td>
2690 <td class="enum_member_description">
2691 <p>Initial value for new buffer.</p>
2692 </td>
2693 <td class="enum_member_annotations"> </td>
2694 </tr>
2695 <tr>
2696 <td class="enum_member_name"><p><a name="HB-BUFFER-CONTENT-TYPE-UNICODE:CAPS"></a>HB_BUFFER_CONTENT_TYPE_UNICODE</p></td>
2697 <td class="enum_member_description">
2698 <p>The buffer contains input characters (before shaping).</p>
2699 </td>
2700 <td class="enum_member_annotations"> </td>
2701 </tr>
2702 <tr>
2703 <td class="enum_member_name"><p><a name="HB-BUFFER-CONTENT-TYPE-GLYPHS:CAPS"></a>HB_BUFFER_CONTENT_TYPE_GLYPHS</p></td>
2704 <td class="enum_member_description">
2705 <p>The buffer contains output glyphs (after shaping).</p>
2706 </td>
2707 <td class="enum_member_annotations"> </td>
2708 </tr>
2709 </tbody>
2710 </table></div>
2711 </div>
2712 </div>
2713 <hr>
2714 <div class="refsect2">
2715 <a name="hb-buffer-flags-t"></a><h3>enum hb_buffer_flags_t</h3>
2716 <div class="refsect3">
2717 <a name="hb-buffer-flags-t.members"></a><h4>Members</h4>
2718 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2719 <colgroup>
2720 <col width="300px" class="enum_members_name">
2721 <col class="enum_members_description">
2722 <col width="200px" class="enum_members_annotations">
2723 </colgroup>
2724 <tbody>
2725 <tr>
2726 <td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-DEFAULT:CAPS"></a>HB_BUFFER_FLAG_DEFAULT</p></td>
2727 <td class="enum_member_description">
2728 <p>the default buffer flag.</p>
2729 </td>
2730 <td class="enum_member_annotations"> </td>
2731 </tr>
2732 <tr>
2733 <td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-BOT:CAPS"></a>HB_BUFFER_FLAG_BOT</p></td>
2734 <td class="enum_member_description">
2735 <p>flag indicating that special handling of the beginning
2736                      of text paragraph can be applied to this buffer. Should usually
2737                      be set, unless you are passing to the buffer only part
2738                      of the text without the full context.</p>
2739 </td>
2740 <td class="enum_member_annotations"> </td>
2741 </tr>
2742 <tr>
2743 <td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-EOT:CAPS"></a>HB_BUFFER_FLAG_EOT</p></td>
2744 <td class="enum_member_description">
2745 <p>flag indicating that special handling of the end of text
2746                      paragraph can be applied to this buffer, similar to
2747                      <em class="parameter"><code>HB_BUFFER_FLAG_BOT</code></em>
2748 .</p>
2749 </td>
2750 <td class="enum_member_annotations"> </td>
2751 </tr>
2752 <tr>
2753 <td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-PRESERVE-DEFAULT-IGNORABLES:CAPS"></a>HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES</p></td>
2754 <td class="enum_member_description">
2755 <p>                     flag indication that character with Default_Ignorable
2756                      Unicode property should use the corresponding glyph
2757                      from the font, instead of hiding them (done by
2758                      replacing them with the space glyph and zeroing the
2759                      advance width.)  This flag takes precedence over
2760                      <em class="parameter"><code>HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES</code></em>
2761 .</p>
2762 </td>
2763 <td class="enum_member_annotations"> </td>
2764 </tr>
2765 <tr>
2766 <td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-REMOVE-DEFAULT-IGNORABLES:CAPS"></a>HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES</p></td>
2767 <td class="enum_member_description">
2768 <p>                     flag indication that character with Default_Ignorable
2769                      Unicode property should be removed from glyph string
2770                      instead of hiding them (done by replacing them with the
2771                      space glyph and zeroing the advance width.)
2772                      <em class="parameter"><code>HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES</code></em>
2773  takes
2774                      precedence over this flag. Since: 1.8.0</p>
2775 </td>
2776 <td class="enum_member_annotations"> </td>
2777 </tr>
2778 </tbody>
2779 </table></div>
2780 </div>
2781 <p class="since">Since: <a class="link" href="api-index-0-9-20.html#api-index-0.9.20">0.9.20</a></p>
2782 </div>
2783 <hr>
2784 <div class="refsect2">
2785 <a name="hb-buffer-cluster-level-t"></a><h3>enum hb_buffer_cluster_level_t</h3>
2786 <div class="refsect3">
2787 <a name="hb-buffer-cluster-level-t.members"></a><h4>Members</h4>
2788 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2789 <colgroup>
2790 <col width="300px" class="enum_members_name">
2791 <col class="enum_members_description">
2792 <col width="200px" class="enum_members_annotations">
2793 </colgroup>
2794 <tbody>
2795 <tr>
2796 <td class="enum_member_name"><p><a name="HB-BUFFER-CLUSTER-LEVEL-MONOTONE-GRAPHEMES:CAPS"></a>HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES</p></td>
2797 <td class="enum_member_description">
2798 <p>Return cluster values grouped by graphemes into
2799   monotone order.</p>
2800 </td>
2801 <td class="enum_member_annotations"> </td>
2802 </tr>
2803 <tr>
2804 <td class="enum_member_name"><p><a name="HB-BUFFER-CLUSTER-LEVEL-MONOTONE-CHARACTERS:CAPS"></a>HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS</p></td>
2805 <td class="enum_member_description">
2806 <p>Return cluster values grouped into monotone order.</p>
2807 </td>
2808 <td class="enum_member_annotations"> </td>
2809 </tr>
2810 <tr>
2811 <td class="enum_member_name"><p><a name="HB-BUFFER-CLUSTER-LEVEL-CHARACTERS:CAPS"></a>HB_BUFFER_CLUSTER_LEVEL_CHARACTERS</p></td>
2812 <td class="enum_member_description">
2813 <p>Don't group cluster values.</p>
2814 </td>
2815 <td class="enum_member_annotations"> </td>
2816 </tr>
2817 <tr>
2818 <td class="enum_member_name"><p><a name="HB-BUFFER-CLUSTER-LEVEL-DEFAULT:CAPS"></a>HB_BUFFER_CLUSTER_LEVEL_DEFAULT</p></td>
2819 <td class="enum_member_description">
2820 <p>Default cluster level,
2821   equal to <em class="parameter"><code>HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES</code></em>
2822 .</p>
2823 </td>
2824 <td class="enum_member_annotations"> </td>
2825 </tr>
2826 </tbody>
2827 </table></div>
2828 </div>
2829 <p class="since">Since: <a class="link" href="api-index-0-9-42.html#api-index-0.9.42">0.9.42</a></p>
2830 </div>
2831 <hr>
2832 <div class="refsect2">
2833 <a name="hb-segment-properties-t-struct"></a><h3>hb_segment_properties_t</h3>
2834 <pre class="programlisting">typedef struct {
2835   hb_direction_t  direction;
2836   hb_script_t     script;
2837   hb_language_t   language;
2838 } hb_segment_properties_t;
2839 </pre>
2840 <p>The structure that holds various text properties of an <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a>. Can be
2841 set and retrieved using <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-segment-properties" title="hb_buffer_set_segment_properties ()"><code class="function">hb_buffer_set_segment_properties()</code></a> and
2842 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-segment-properties" title="hb_buffer_get_segment_properties ()"><code class="function">hb_buffer_get_segment_properties()</code></a>, respectively.</p>
2843 <div class="refsect3">
2844 <a name="hb-segment-properties-t.members"></a><h4>Members</h4>
2845 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2846 <colgroup>
2847 <col width="300px" class="struct_members_name">
2848 <col class="struct_members_description">
2849 <col width="200px" class="struct_members_annotations">
2850 </colgroup>
2851 <tbody>
2852 <tr>
2853 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> <em class="structfield"><code><a name="hb-segment-properties-t-struct.direction"></a>direction</code></em>;</p></td>
2854 <td class="struct_member_description"><p>the <a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> of the buffer, see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-direction" title="hb_buffer_set_direction ()"><code class="function">hb_buffer_set_direction()</code></a>.</p></td>
2855 <td class="struct_member_annotations"> </td>
2856 </tr>
2857 <tr>
2858 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> <em class="structfield"><code><a name="hb-segment-properties-t-struct.script"></a>script</code></em>;</p></td>
2859 <td class="struct_member_description"><p>the <a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> of the buffer, see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-script" title="hb_buffer_set_script ()"><code class="function">hb_buffer_set_script()</code></a>.</p></td>
2860 <td class="struct_member_annotations"> </td>
2861 </tr>
2862 <tr>
2863 <td class="struct_member_name"><p><a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="type">hb_language_t</span></a> <em class="structfield"><code><a name="hb-segment-properties-t-struct.language"></a>language</code></em>;</p></td>
2864 <td class="struct_member_description"><p>the <a class="link" href="harfbuzz-hb-common.html#hb-language-t" title="hb_language_t"><span class="type">hb_language_t</span></a> of the buffer, see <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-language" title="hb_buffer_set_language ()"><code class="function">hb_buffer_set_language()</code></a>.</p></td>
2865 <td class="struct_member_annotations"> </td>
2866 </tr>
2867 </tbody>
2868 </table></div>
2869 </div>
2870 </div>
2871 <hr>
2872 <div class="refsect2">
2873 <a name="hb-buffer-serialize-format-t"></a><h3>enum hb_buffer_serialize_format_t</h3>
2874 <p>The buffer serialization and de-serialization format used in
2875 <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs" title="hb_buffer_serialize_glyphs ()"><code class="function">hb_buffer_serialize_glyphs()</code></a> and <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-deserialize-glyphs" title="hb_buffer_deserialize_glyphs ()"><code class="function">hb_buffer_deserialize_glyphs()</code></a>.</p>
2876 <div class="refsect3">
2877 <a name="hb-buffer-serialize-format-t.members"></a><h4>Members</h4>
2878 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2879 <colgroup>
2880 <col width="300px" class="enum_members_name">
2881 <col class="enum_members_description">
2882 <col width="200px" class="enum_members_annotations">
2883 </colgroup>
2884 <tbody>
2885 <tr>
2886 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FORMAT-TEXT:CAPS"></a>HB_BUFFER_SERIALIZE_FORMAT_TEXT</p></td>
2887 <td class="enum_member_description">
2888 <p>a human-readable, plain text format.</p>
2889 </td>
2890 <td class="enum_member_annotations"> </td>
2891 </tr>
2892 <tr>
2893 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FORMAT-JSON:CAPS"></a>HB_BUFFER_SERIALIZE_FORMAT_JSON</p></td>
2894 <td class="enum_member_description">
2895 <p>a machine-readable JSON format.</p>
2896 </td>
2897 <td class="enum_member_annotations"> </td>
2898 </tr>
2899 <tr>
2900 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FORMAT-INVALID:CAPS"></a>HB_BUFFER_SERIALIZE_FORMAT_INVALID</p></td>
2901 <td class="enum_member_description">
2902 <p>invalid format.</p>
2903 </td>
2904 <td class="enum_member_annotations"> </td>
2905 </tr>
2906 </tbody>
2907 </table></div>
2908 </div>
2909 <p class="since">Since: <a class="link" href="api-index-0-9-2.html#api-index-0.9.2">0.9.2</a></p>
2910 </div>
2911 <hr>
2912 <div class="refsect2">
2913 <a name="hb-buffer-serialize-flags-t"></a><h3>enum hb_buffer_serialize_flags_t</h3>
2914 <p>Flags that control what glyph information are serialized in <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs" title="hb_buffer_serialize_glyphs ()"><code class="function">hb_buffer_serialize_glyphs()</code></a>.</p>
2915 <div class="refsect3">
2916 <a name="hb-buffer-serialize-flags-t.members"></a><h4>Members</h4>
2917 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2918 <colgroup>
2919 <col width="300px" class="enum_members_name">
2920 <col class="enum_members_description">
2921 <col width="200px" class="enum_members_annotations">
2922 </colgroup>
2923 <tbody>
2924 <tr>
2925 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-DEFAULT:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_DEFAULT</p></td>
2926 <td class="enum_member_description">
2927 <p>serialize glyph names, clusters and positions.</p>
2928 </td>
2929 <td class="enum_member_annotations"> </td>
2930 </tr>
2931 <tr>
2932 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-CLUSTERS:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS</p></td>
2933 <td class="enum_member_description">
2934 <p>do not serialize glyph cluster.</p>
2935 </td>
2936 <td class="enum_member_annotations"> </td>
2937 </tr>
2938 <tr>
2939 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-POSITIONS:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS</p></td>
2940 <td class="enum_member_description">
2941 <p>do not serialize glyph position information.</p>
2942 </td>
2943 <td class="enum_member_annotations"> </td>
2944 </tr>
2945 <tr>
2946 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-GLYPH-NAMES:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES</p></td>
2947 <td class="enum_member_description">
2948 <p>do no serialize glyph name.</p>
2949 </td>
2950 <td class="enum_member_annotations"> </td>
2951 </tr>
2952 <tr>
2953 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-GLYPH-EXTENTS:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS</p></td>
2954 <td class="enum_member_description">
2955 <p>serialize glyph extents.</p>
2956 </td>
2957 <td class="enum_member_annotations"> </td>
2958 </tr>
2959 <tr>
2960 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-GLYPH-FLAGS:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS</p></td>
2961 <td class="enum_member_description">
2962 <p>serialize glyph flags. Since: 1.5.0</p>
2963 </td>
2964 <td class="enum_member_annotations"> </td>
2965 </tr>
2966 <tr>
2967 <td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-ADVANCES:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES</p></td>
2968 <td class="enum_member_description">
2969 <p>do not serialize glyph advances,
2970  glyph offsets will reflect absolute glyph positions. Since: 1.8.0</p>
2971 </td>
2972 <td class="enum_member_annotations"> </td>
2973 </tr>
2974 </tbody>
2975 </table></div>
2976 </div>
2977 <p class="since">Since: <a class="link" href="api-index-0-9-20.html#api-index-0.9.20">0.9.20</a></p>
2978 </div>
2979 <hr>
2980 <div class="refsect2">
2981 <a name="hb-buffer-diff-flags-t"></a><h3>enum hb_buffer_diff_flags_t</h3>
2982 <div class="refsect3">
2983 <a name="hb-buffer-diff-flags-t.members"></a><h4>Members</h4>
2984 <div class="informaltable"><table class="informaltable" width="100%" border="0">
2985 <colgroup>
2986 <col width="300px" class="enum_members_name">
2987 <col class="enum_members_description">
2988 <col width="200px" class="enum_members_annotations">
2989 </colgroup>
2990 <tbody>
2991 <tr>
2992 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-EQUAL:CAPS"></a>HB_BUFFER_DIFF_FLAG_EQUAL</p></td>
2993 <td> </td>
2994 <td> </td>
2995 </tr>
2996 <tr>
2997 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-CONTENT-TYPE-MISMATCH:CAPS"></a>HB_BUFFER_DIFF_FLAG_CONTENT_TYPE_MISMATCH</p></td>
2998 <td> </td>
2999 <td> </td>
3000 </tr>
3001 <tr>
3002 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-LENGTH-MISMATCH:CAPS"></a>HB_BUFFER_DIFF_FLAG_LENGTH_MISMATCH</p></td>
3003 <td> </td>
3004 <td> </td>
3005 </tr>
3006 <tr>
3007 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-NOTDEF-PRESENT:CAPS"></a>HB_BUFFER_DIFF_FLAG_NOTDEF_PRESENT</p></td>
3008 <td> </td>
3009 <td> </td>
3010 </tr>
3011 <tr>
3012 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-DOTTED-CIRCLE-PRESENT:CAPS"></a>HB_BUFFER_DIFF_FLAG_DOTTED_CIRCLE_PRESENT</p></td>
3013 <td> </td>
3014 <td> </td>
3015 </tr>
3016 <tr>
3017 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-CODEPOINT-MISMATCH:CAPS"></a>HB_BUFFER_DIFF_FLAG_CODEPOINT_MISMATCH</p></td>
3018 <td> </td>
3019 <td> </td>
3020 </tr>
3021 <tr>
3022 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-CLUSTER-MISMATCH:CAPS"></a>HB_BUFFER_DIFF_FLAG_CLUSTER_MISMATCH</p></td>
3023 <td> </td>
3024 <td> </td>
3025 </tr>
3026 <tr>
3027 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-GLYPH-FLAGS-MISMATCH:CAPS"></a>HB_BUFFER_DIFF_FLAG_GLYPH_FLAGS_MISMATCH</p></td>
3028 <td> </td>
3029 <td> </td>
3030 </tr>
3031 <tr>
3032 <td class="enum_member_name"><p><a name="HB-BUFFER-DIFF-FLAG-POSITION-MISMATCH:CAPS"></a>HB_BUFFER_DIFF_FLAG_POSITION_MISMATCH</p></td>
3033 <td> </td>
3034 <td> </td>
3035 </tr>
3036 </tbody>
3037 </table></div>
3038 </div>
3039 </div>
3040 </div>
3041 </div>
3042 <div class="footer">
3043 <hr>Generated by GTK-Doc V1.25</div>
3044 </body>
3045 </html>