From: Behdad Esfahbod Date: Sat, 7 Apr 2012 18:51:17 +0000 (-0400) Subject: Bring normalization algorithm closer to the spec X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bec2ac4fde1ba0dd6dba02adbb836ce569a5cf6f;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Bring normalization algorithm closer to the spec No logical difference so far. --- diff --git a/src/hb-ot-shape-normalize.cc b/src/hb-ot-shape-normalize.cc index f24fb32..02a90bf 100644 --- a/src/hb-ot-shape-normalize.cc +++ b/src/hb-ot-shape-normalize.cc @@ -250,7 +250,8 @@ _hb_ot_shape_normalize (hb_font_t *font, hb_buffer_t *buffer, } hb_codepoint_t composed, glyph; - if ((buffer->out_info[buffer->out_len - 1].combining_class() < buffer->info[buffer->idx].combining_class()) && + if ((starter == buffer->out_len - 1 || + buffer->out_info[buffer->out_len - 1].combining_class() < buffer->info[buffer->idx].combining_class()) && hb_unicode_compose (buffer->unicode, buffer->out_info[starter].codepoint, buffer->info[buffer->idx].codepoint,