From dfa0cade7fce3791e47eaa7edcd23da76c7a0ed0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 May 2012 19:10:07 +0200 Subject: [PATCH] Fix Uniscribe clusters with multiple items --- src/hb-uniscribe.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index 41ce5e68d..584d6412c 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -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))