Lines Matching refs:buffer
236 hb_buffer_t *buffer,
255 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size);
268 for (unsigned int i = 0; i < buffer->len; i++) {
269 hb_codepoint_t c = buffer->info[i].codepoint;
270 buffer->info[i].utf16_index() = chars_len;
312 bidi_state.uBidiLevel = HB_DIRECTION_IS_FORWARD (buffer->props.direction) ? 0 : 1;
335 OPENTYPE_TAG language_tag = hb_uint32_swap (hb_ot_tag_from_language (buffer->props.language));
339 bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
369 buffer->ensure (buffer->allocated * 2);
370 if (buffer->in_error)
371 FAIL ("Buffer resize failed");
415 /* Ok, we've got everything we need, now compose output buffer,
421 for (unsigned int i = 0; i < buffer->len; i++) {
422 uint32_t *p = &vis_clusters[log_clusters[buffer->info[i].utf16_index()]];
423 *p = MIN (*p, buffer->info[i].cluster);
437 buffer->ensure (glyphs_len);
438 if (buffer->in_error)
439 FAIL ("Buffer in error");
444 buffer->len = 0;
447 hb_glyph_info_t *info = &buffer->info[buffer->len++];
459 buffer->clear_positions ();
462 hb_glyph_info_t *info = &buffer->info[i];
463 hb_glyph_position_t *pos = &buffer->pos[i];