Home | History | Annotate | Download | only in src

Lines Matching refs:buffer

38 /* buffer **position** var allocations */
399 hb_buffer_t *buffer = c->buffer;
412 mark_anchor.get_anchor (c->font, buffer->cur().codepoint, &mark_x, &mark_y);
413 glyph_anchor.get_anchor (c->font, buffer->info[glyph_pos].codepoint, &base_x, &base_y);
415 hb_glyph_position_t &o = buffer->cur_pos();
418 o.attach_lookback() = buffer->idx - glyph_pos;
420 buffer->idx++;
449 hb_buffer_t *buffer = c->buffer;
450 unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint);
454 values, buffer->cur_pos());
456 buffer->idx++;
495 hb_buffer_t *bufferbuffer;
496 unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint);
503 buffer->cur_pos());
505 buffer->idx++;
600 hb_buffer_t *buffer = c->buffer;
610 if (buffer->info[pos].codepoint == record->secondGlyph)
613 &record->values[0], buffer->cur_pos());
615 &record->values[len1], buffer->pos[pos]);
618 buffer->idx = pos;
672 hb_buffer_t *buffer = c->buffer;
673 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, 1);
676 unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint);
743 hb_buffer_t *buffer = c->buffer;
744 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, 1);
747 unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint);
756 unsigned int klass1 = (this+classDef1).get_class (buffer->cur().codepoint);
757 unsigned int klass2 = (this+classDef2).get_class (buffer->info[skippy_iter.idx].codepoint);
762 v, buffer->cur_pos());
764 v + len1, buffer->pos[skippy_iter.idx]);
766 buffer->idx = skippy_iter.idx;
768 buffer->idx++;
890 hb_buffer_t *buffer = c->buffer;
893 if (unlikely (_hb_glyph_info_is_mark (&buffer->cur()))) return TRACE_RETURN (false);
895 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, 1);
898 const EntryExitRecord &this_record = entryExitRecord[(this+coverage).get_coverage (buffer->cur().codepoint)];
903 const EntryExitRecord &next_record = entryExitRecord[(this+coverage).get_coverage (buffer->info[skippy_iter.idx].codepoint)];
906 unsigned int i = buffer->idx;
910 (this+this_record.exitAnchor).get_anchor (c->font, buffer->info[i].codepoint, &exit_x, &exit_y);
911 (this+next_record.entryAnchor).get_anchor (c->font, buffer->info[j].codepoint, &entry_x, &entry_y);
913 hb_glyph_position_t *pos = buffer->pos;
966 buffer->idx = j;
1038 hb_buffer_t *buffer = c->buffer;
1039 unsigned int mark_index = (this+markCoverage).get_coverage (buffer->cur().codepoint);
1043 hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, buffer->idx, 1);
1048 if (0 == _hb_glyph_info_get_lig_comp (&buffer->info[skippy_iter.idx])) break;
1053 if (!_hb_glyph_info_is_base_glyph (&buffer->info[skippy_iter.idx])) { /*return TRACE_RETURN (false);*/ }
1055 unsigned int base_index = (this+baseCoverage).get_coverage (buffer->info[skippy_iter.idx].codepoint);
1142 hb_buffer_t *buffer = c->buffer;
1143 unsigned int mark_index = (this+markCoverage).get_coverage (buffer->cur().codepoint);
1147 hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, buffer->idx, 1);
1152 if (!_hb_glyph_info_is_ligature (&buffer->info[skippy_iter.idx])) { /*return TRACE_RETURN (false);*/ }
1155 unsigned int lig_index = (this+ligatureCoverage).get_coverage (buffer->info[j].codepoint);
1170 unsigned int lig_id = _hb_glyph_info_get_lig_id (&buffer->info[j]);
1171 unsigned int mark_id = _hb_glyph_info_get_lig_id (&buffer->cur());
1172 unsigned int mark_comp = _hb_glyph_info_get_lig_comp (&buffer->cur());
1174 comp_index = MIN (comp_count, _hb_glyph_info_get_lig_comp (&buffer->cur())) - 1;
1258 hb_buffer_t *buffer = c->buffer;
1259 unsigned int mark1_index = (this+mark1Coverage).get_coverage (buffer->cur().codepoint);
1263 hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, buffer->idx, 1);
1267 if (!_hb_glyph_info_is_mark (&buffer->info[skippy_iter.idx])) { return TRACE_RETURN (false); }
1271 unsigned int id1 = _hb_glyph_info_get_lig_id (&buffer->cur());
1272 unsigned int id2 = _hb_glyph_info_get_lig_id (&buffer->info[j]);
1273 unsigned int comp1 = _hb_glyph_info_get_lig_comp (&buffer->cur());
1274 unsigned int comp2 = _hb_glyph_info_get_lig_comp (&buffer->info[j]);
1292 unsigned int mark2_index = (this+mark2Coverage).get_coverage (buffer->info[j].codepoint);
1478 if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props))
1523 static inline void position_start (hb_font_t *font, hb_buffer_t *buffer);
1524 static inline void position_finish (hb_font_t *font, hb_buffer_t *buffer);
1580 GPOS::position_start (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
1582 buffer->clear_positions ();
1584 unsigned int count = buffer->len;
1586 buffer->pos[i].attach_lookback() = buffer->pos[i].cursive_chain() = 0;
1590 GPOS::position_finish (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
1593 hb_glyph_position_t *pos = hb_buffer_get_glyph_positions (buffer, &len);
1594 hb_direction_t direction = buffer->props.direction;
1604 _hb_buffer_deallocate_gsubgpos_vars (buffer);