This commit is contained in:
Behdad Esfahbod 2012-06-08 21:41:46 -04:00
parent 4508789f4b
commit 4b7192125f
2 changed files with 10 additions and 1 deletions

View File

@ -502,7 +502,8 @@ struct Ligature
if (skippy_iter.idx < c->buffer->idx + count) /* No input glyphs skipped */
{
c->replace_glyphs_be16 (count, 1, (const char *) &ligGlyph, klass);
hb_codepoint_t lig_glyph = ligGlyph;
c->replace_glyphs (count, 1, &lig_glyph, klass);
}
else
{

View File

@ -236,6 +236,14 @@ struct hb_apply_context_t
buffer->cur().props_cache() = klass; /* XXX if has gdef? */
buffer->replace_glyphs_be16 (num_in, num_out, glyph_data_be);
}
inline void replace_glyphs (unsigned int num_in,
unsigned int num_out,
hb_codepoint_t *glyph_data,
unsigned int klass = 0) const
{
buffer->cur().props_cache() = klass; /* XXX if has gdef? */
buffer->replace_glyphs (num_in, num_out, glyph_data);
}
};