summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-09-01 16:24:54 +0100
committerBehdad Esfahbod <behdad@behdad.org>2015-09-01 16:24:54 +0100
commitbdc8215949a7add742cc800b4fdea6acaa37d152 (patch)
treeffb8bb7d521949395482b2b17a387ce2403269c3
parent5b31fe383ead726ec77062501ed3bb24c02842b3 (diff)
downloadharfbuzz-bdc8215949a7add742cc800b4fdea6acaa37d152.tar.gz
[thai] Respect cluster-level > 0
-rw-r--r--src/hb-ot-shape-complex-thai.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-ot-shape-complex-thai.cc b/src/hb-ot-shape-complex-thai.cc
index feb7fc7a..d4ede209 100644
--- a/src/hb-ot-shape-complex-thai.cc
+++ b/src/hb-ot-shape-complex-thai.cc
@@ -353,7 +353,7 @@ preprocess_text_thai (const hb_ot_shape_plan_t *plan,
{
/* Since we decomposed, and NIKHAHIT is combining, merge clusters with the
* previous cluster. */
- if (start)
+ if (start && buffer->cluster_level == HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES)
buffer->merge_out_clusters (start - 1, end);
}
}