Lines Matching refs:buffer
176 hb_buffer_t *buffer,
191 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size);
197 for (unsigned int i = 0; i < buffer->len; i++) {
198 hb_codepoint_t c = buffer->info[i].codepoint;
199 buffer->info[i].utf16_index() = chars_len;
236 buffer->len = 0;
247 buffer->ensure (buffer->len + num_glyphs);
250 * and so copying data to our own buffer with CTRunGetGlyphs will be
254 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size);
289 hb_glyph_info_t *info = &buffer->info[buffer->len];
290 hb_glyph_position_t *pos = &buffer->pos[buffer->len];
300 buffer->len++;
304 buffer->clear_positions ();
306 unsigned int count = buffer->len;
308 hb_glyph_info_t *info = &buffer->info[i];
309 hb_glyph_position_t *pos = &buffer->pos[i];
323 * monotonic in the output buffer. */
324 if (HB_DIRECTION_IS_FORWARD (buffer->props.direction)) {
327 unsigned int curr_cluster = buffer->info[i].cluster;
330 if (buffer->info[j - 1].cluster > curr_cluster)
331 buffer->info[j - 1].cluster = curr_cluster;
341 unsigned int curr_cluster = buffer->info[i].cluster;
344 if (buffer->info[j - 1].cluster < curr_cluster)
345 buffer->info[j - 1].cluster = curr_cluster;