Lines Matching refs:buffer
188 table_func (void *font, HB_Tag tag, HB_Byte *buffer, HB_UInt *length)
194 memcpy (buffer, hb_blob_get_data (blob, NULL), MIN (capacity, *length));
274 hb_buffer_t *buffer,
282 bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
287 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size);
292 for (unsigned int i = 0; i < buffer->len; i++) {
293 hb_codepoint_t c = buffer->info[i].codepoint;
294 buffer->info[i].utf16_index() = chars_len;
319 item.item.script = hb_old_script_from_script (buffer->props.script);
352 buffer->ensure (buffer->allocated * 2);
353 if (buffer->in_error)
361 /* Ok, we've got everything we need, now compose output buffer,
367 for (unsigned int i = 0; i < buffer->len; i++) {
368 uint32_t *p = &vis_clusters[item.log_clusters[buffer->info[i].utf16_index()]];
369 *p = MIN (*p, buffer->info[i].cluster);
377 buffer->ensure (num_glyphs);
378 if (buffer->in_error)
382 buffer->len = num_glyphs;
383 hb_glyph_info_t *info = buffer->info;
394 buffer->clear_positions ();
397 hb_glyph_info_t *info = &buffer->info[i];
398 hb_glyph_position_t *pos = &buffer->pos[i];
406 if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
407 buffer->reverse ();