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