summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-09-01 16:24:13 +0100
committerBehdad Esfahbod <behdad@behdad.org>2015-09-01 16:24:13 +0100
commit0d438f89bd9422c66838c776eb4aa867de0a2ad8 (patch)
tree1f6bcb85e97beba7b4b44b6d4ad4413284c9f5c6
parentf883de664fc4bfe01e30c89e07e31dc113f906d9 (diff)
downloadharfbuzz-0d438f89bd9422c66838c776eb4aa867de0a2ad8.tar.gz
[hangul] Merge /before/ reordering
-rw-r--r--src/hb-ot-shape-complex-hangul.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-ot-shape-complex-hangul.cc b/src/hb-ot-shape-complex-hangul.cc
index 763dbf00..1fa79ce6 100644
--- a/src/hb-ot-shape-complex-hangul.cc
+++ b/src/hb-ot-shape-complex-hangul.cc
@@ -205,11 +205,11 @@ preprocess_text_hangul (const hb_ot_shape_plan_t *plan,
buffer->next_glyph ();
if (!is_zero_width_char (font, u))
{
+ buffer->merge_out_clusters (start, end + 1);
hb_glyph_info_t *info = buffer->out_info;
hb_glyph_info_t tone = info[end];
memmove (&info[start + 1], &info[start], (end - start) * sizeof (hb_glyph_info_t));
info[start] = tone;
- buffer->merge_out_clusters (start, end + 1);
}
}
else