diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 49ada88d4..41b88b743 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -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 { diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index 2554f42e1..a33bce677 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -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); + } };