Include variation-selectors in cluster calculation

This commit is contained in:
Behdad Esfahbod 2011-07-21 00:35:37 -04:00
parent dd89d958c1
commit 49741c8633
1 changed files with 2 additions and 1 deletions

View File

@ -205,7 +205,8 @@ hb_form_clusters (hb_ot_shape_context_t *c)
if (FLAG (c->buffer->info[i].general_category()) & if (FLAG (c->buffer->info[i].general_category()) &
(FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) | (FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) |
FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) | FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) |
FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK))) FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)) ||
is_variation_selector (c->buffer->info[c->buffer->i].codepoint))
c->buffer->info[i].cluster = c->buffer->info[i - 1].cluster; c->buffer->info[i].cluster = c->buffer->info[i - 1].cluster;
} }