From 3380de5abbaff535e1cf57ea7e5c2a7c4fdcfe66 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 26 Aug 2011 09:30:49 +0200 Subject: [PATCH] [graphite] Use buffer->replace_glyphs() --- src/hb-graphite2.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc index 0bd53cbb7..145ca4f9a 100644 --- a/src/hb-graphite2.cc +++ b/src/hb-graphite2.cc @@ -291,7 +291,6 @@ hb_graphite_shape (hb_font_t *font, unsigned int before = gr_slot_before (is); unsigned int after = gr_slot_after (is); *pg = gr_slot_gid (is); - *pg = hb_be_uint16 (*pg); // XXX insane: swap bytes so be16 can swap them back pg++; while (clusters[ci].base_char > before && ci) { @@ -318,7 +317,7 @@ hb_graphite_shape (hb_font_t *font, buffer->clear_output(); for (unsigned int i = 0; i < ci; ++i) - buffer->replace_glyphs_be16(clusters[i].num_chars, clusters[i].num_glyphs, gids + clusters[i].base_glyph); + buffer->replace_glyphs (clusters[i].num_chars, clusters[i].num_glyphs, gids + clusters[i].base_glyph); buffer->swap_buffers(); hb_glyph_position_t *pPos;