From 4b7192125ffd295091d6b3a0bdfca7011947c2ca Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 8 Jun 2012 21:41:46 -0400 Subject: [PATCH] Minor --- src/hb-ot-layout-gsub-table.hh | 3 ++- src/hb-ot-layout-gsubgpos-private.hh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 49ada88..41b88b7 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 2554f42..a33bce6 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); + } }; -- 2.7.4