|
|
@ -684,7 +684,8 @@ struct PairPosFormat1 |
|
|
|
unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint); |
|
|
|
unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint); |
|
|
|
if (likely (index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
if (likely (index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter (c); |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter; |
|
|
|
|
|
|
|
skippy_iter.init (c); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
if (!skippy_iter.next ()) return TRACE_RETURN (false); |
|
|
|
if (!skippy_iter.next ()) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
@ -754,7 +755,8 @@ struct PairPosFormat2 |
|
|
|
unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint); |
|
|
|
unsigned int index = (this+coverage).get_coverage (buffer->cur().codepoint); |
|
|
|
if (likely (index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
if (likely (index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter (c); |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter; |
|
|
|
|
|
|
|
skippy_iter.init (c); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
if (!skippy_iter.next ()) return TRACE_RETURN (false); |
|
|
|
if (!skippy_iter.next ()) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
@ -904,7 +906,8 @@ struct CursivePosFormat1 |
|
|
|
const EntryExitRecord &this_record = entryExitRecord[(this+coverage).get_coverage (buffer->cur().codepoint)]; |
|
|
|
const EntryExitRecord &this_record = entryExitRecord[(this+coverage).get_coverage (buffer->cur().codepoint)]; |
|
|
|
if (!this_record.exitAnchor) return TRACE_RETURN (false); |
|
|
|
if (!this_record.exitAnchor) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter (c); |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter; |
|
|
|
|
|
|
|
skippy_iter.init (c); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
if (!skippy_iter.next ()) return TRACE_RETURN (false); |
|
|
|
if (!skippy_iter.next ()) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
@ -1048,7 +1051,8 @@ struct MarkBasePosFormat1 |
|
|
|
if (likely (mark_index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
if (likely (mark_index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
|
/* now we search backwards for a non-mark glyph */ |
|
|
|
/* now we search backwards for a non-mark glyph */ |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter (c); |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter; |
|
|
|
|
|
|
|
skippy_iter.init (c); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.set_lookup_props (LookupFlag::IgnoreMarks); |
|
|
|
skippy_iter.set_lookup_props (LookupFlag::IgnoreMarks); |
|
|
|
do { |
|
|
|
do { |
|
|
@ -1153,7 +1157,8 @@ struct MarkLigPosFormat1 |
|
|
|
if (likely (mark_index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
if (likely (mark_index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
|
/* now we search backwards for a non-mark glyph */ |
|
|
|
/* now we search backwards for a non-mark glyph */ |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter (c); |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter; |
|
|
|
|
|
|
|
skippy_iter.init (c); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.set_lookup_props (LookupFlag::IgnoreMarks); |
|
|
|
skippy_iter.set_lookup_props (LookupFlag::IgnoreMarks); |
|
|
|
if (!skippy_iter.prev ()) return TRACE_RETURN (false); |
|
|
|
if (!skippy_iter.prev ()) return TRACE_RETURN (false); |
|
|
@ -1270,7 +1275,8 @@ struct MarkMarkPosFormat1 |
|
|
|
if (likely (mark1_index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
if (likely (mark1_index == NOT_COVERED)) return TRACE_RETURN (false); |
|
|
|
|
|
|
|
|
|
|
|
/* now we search backwards for a suitable mark glyph until a non-mark glyph */ |
|
|
|
/* now we search backwards for a suitable mark glyph until a non-mark glyph */ |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter (c); |
|
|
|
hb_apply_context_t::skipping_iterator_t skippy_iter; |
|
|
|
|
|
|
|
skippy_iter.init (c); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.reset (buffer->idx, 1); |
|
|
|
skippy_iter.set_lookup_props (c->lookup_props & ~LookupFlag::IgnoreFlags); |
|
|
|
skippy_iter.set_lookup_props (c->lookup_props & ~LookupFlag::IgnoreFlags); |
|
|
|
if (!skippy_iter.prev ()) return TRACE_RETURN (false); |
|
|
|
if (!skippy_iter.prev ()) return TRACE_RETURN (false); |
|
|
|