[GSUB] Minor

This commit is contained in:
Behdad Esfahbod 2012-07-30 18:36:42 -04:00
parent 713914d320
commit 7fbbf86efe
2 changed files with 7 additions and 1 deletions

View File

@ -920,7 +920,7 @@ struct ReverseChainSingleSubstFormat1
match_coverage, this,
1))
{
c->buffer->cur().codepoint = substitute[index];
c->replace_glyph_inplace (substitute[index]);
c->buffer->idx--; /* Reverse! */
return TRACE_RETURN (true);
}

View File

@ -246,6 +246,12 @@ struct hb_apply_context_t
set_klass_guess (klass_guess);
buffer->replace_glyph (glyph_index);
}
inline void replace_glyph_inplace (hb_codepoint_t glyph_index,
unsigned int klass_guess = 0) const
{
set_klass_guess (klass_guess);
buffer->cur().codepoint = glyph_index;
}
};