Index: third_party/harfbuzz-ng/src/hb-uniscribe.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-uniscribe.cc b/third_party/harfbuzz-ng/src/hb-uniscribe.cc |
index ce86074ec88cdd8aeef4f80f869fe0aa011192d0..584d6412ca07e83d5738b2a59279906c571369b6 100644 |
--- a/third_party/harfbuzz-ng/src/hb-uniscribe.cc |
+++ b/third_party/harfbuzz-ng/src/hb-uniscribe.cc |
@@ -223,11 +223,10 @@ hb_uniscribe_font_get_hfont (hb_font_t *font) |
hb_bool_t |
-hb_uniscribe_shape (hb_font_t *font, |
- hb_buffer_t *buffer, |
- const hb_feature_t *features, |
- unsigned int num_features, |
- const char * const *shaper_options) |
+_hb_uniscribe_shape (hb_font_t *font, |
+ hb_buffer_t *buffer, |
+ const hb_feature_t *features, |
+ unsigned int num_features) |
{ |
buffer->guess_properties (); |
@@ -360,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)) |