From d6b9c6d20041b4f4fa11befc179aee757c41904d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Jul 2011 12:16:45 -0400 Subject: [PATCH] More kicking --- src/hb-ot-shape-normalize.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-shape-normalize.cc b/src/hb-ot-shape-normalize.cc index 0a245b0..a791e7c 100644 --- a/src/hb-ot-shape-normalize.cc +++ b/src/hb-ot-shape-normalize.cc @@ -38,23 +38,34 @@ get_glyph (hb_ot_shape_context_t *c, unsigned int i) } static bool +decompose_single_char_cluster (hb_ot_shape_context_t *c, + unsigned int i) +{ + return FALSE; +} + +static bool handle_single_char_cluster (hb_ot_shape_context_t *c, unsigned int i) { + /* If the single char is supported by the font, we're good. */ if (get_glyph (c, i)) return FALSE; /* Decompose */ - - return FALSE; + return decompose_single_char_cluster (c, i); } static bool handle_multi_char_cluster (hb_ot_shape_context_t *c, - unsigned int i, + unsigned int start, unsigned int end) { /* If there's a variation-selector, give-up, it's just too hard. */ + for (unsigned int i = start; i < end; i++) + if (unlikely (is_variation_selector (c->buffer->info[i].codepoint))) + return FALSE; + return FALSE; } -- 2.7.4