From bdb20dafc3f737923da3dca0c832fdf4ab8daabc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 2 Jan 2014 14:04:30 +0800 Subject: [PATCH] [hangul] Fix decomposition Part of https://github.com/behdad/harfbuzz/pull/10 --- src/hb-ot-shape-complex-hangul.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shape-complex-hangul.cc b/src/hb-ot-shape-complex-hangul.cc index ed32935db..419449726 100644 --- a/src/hb-ot-shape-complex-hangul.cc +++ b/src/hb-ot-shape-complex-hangul.cc @@ -165,8 +165,8 @@ preprocess_text_hangul (const hb_ot_shape_plan_t *plan, bool has_glyph = font->get_glyph (s, 0, &glyph); unsigned int lindex = (s - SBase) / NCount; unsigned int nindex = (s - SBase) % NCount; - unsigned int vindex = nindex / VCount; - unsigned int tindex = nindex % VCount; + unsigned int vindex = nindex / TCount; + unsigned int tindex = nindex % TCount; if (tindex && has_glyph) goto next; /* supported. Nothing to do. */