Fix Uniscribe clusters with multiple items
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 9 May 2012 17:10:07 +0000 (19:10 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 9 May 2012 17:10:07 +0000 (19:10 +0200)
src/hb-uniscribe.cc

index 41ce5e6..584d641 100644 (file)
@@ -359,6 +359,9 @@ retry:
                                glyph_props + glyphs_offset,
                                (int *) &glyphs_len);
 
+      for (unsigned int j = chars_offset; j < chars_offset + item_chars_len; j++)
+        log_clusters[j] += glyphs_offset;
+
       if (unlikely (items[i].a.fNoGlyphIndex))
        FAIL ("ScriptShapeOpenType() set fNoGlyphIndex");
       if (unlikely (hr == E_OUTOFMEMORY))