summaryrefslogtreecommitdiff
path: root/src/hb-ot-shape-complex-khmer.cc
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-06-04 16:47:45 -0700
committerBehdad Esfahbod <behdad@behdad.org>2018-06-05 12:06:50 -0700
commitba3b6d6c6512b58a3d0e5277fbbe4e69b085467d (patch)
tree2b66dca59b69a52467354fd0c9e5226a6fcc2db8 /src/hb-ot-shape-complex-khmer.cc
parent8220ef8a54bcc94f122d50804c0a5e829de81be1 (diff)
[khmer] Fix Coeng vs Halant confusion
Test suite results are unchanged (34).
Diffstat (limited to 'src/hb-ot-shape-complex-khmer.cc')
-rw-r--r--src/hb-ot-shape-complex-khmer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hb-ot-shape-complex-khmer.cc b/src/hb-ot-shape-complex-khmer.cc
index 7c2cd791..18e3c941 100644
--- a/src/hb-ot-shape-complex-khmer.cc
+++ b/src/hb-ot-shape-complex-khmer.cc
@@ -317,7 +317,7 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
if ((FLAG_UNSAFE (info[i].khmer_category()) & (JOINER_FLAGS | FLAG (OT_N) | FLAG (OT_RS) | MEDIAL_FLAGS | FLAG (OT_Coeng))))
{
info[i].khmer_position() = last_pos;
- if (unlikely (info[i].khmer_category() == OT_H &&
+ if (unlikely (info[i].khmer_category() == OT_Coeng &&
info[i].khmer_position() == POS_PRE_M))
{
/*
@@ -538,7 +538,7 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
* and possibly multiple substitutions happened prior to this
* phase, and that might have messed up our properties. Recover
* from a particular case of that where we're fairly sure that a
- * class of OT_H is desired but has been lost. */
+ * class of OT_Coeng is desired but has been lost. */
if (khmer_plan->virama_glyph)
{
unsigned int virama_glyph = khmer_plan->virama_glyph;
@@ -548,7 +548,7 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
_hb_glyph_info_multiplied (&info[i]))
{
/* This will make sure that this glyph passes is_coeng() test. */
- info[i].khmer_category() = OT_H;
+ info[i].khmer_category() = OT_Coeng;
_hb_glyph_info_clear_ligated_and_multiplied (&info[i]);
}
}