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