提交 4a686846 编写于 作者: B Behdad Esfahbod

When forming clusters, participate all mark types

上级 5157e12a
...@@ -202,8 +202,10 @@ hb_form_clusters (hb_ot_shape_context_t *c) ...@@ -202,8 +202,10 @@ hb_form_clusters (hb_ot_shape_context_t *c)
{ {
unsigned int count = c->buffer->len; unsigned int count = c->buffer->len;
for (unsigned int i = 1; i < count; i++) for (unsigned int i = 1; i < count; i++)
/* TODO: Match other mark types too? */ if (FLAG (c->buffer->info[i].general_category()) &
if (c->buffer->info[i].general_category() == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) (FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) |
FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) |
FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)))
c->buffer->info[i].cluster = c->buffer->info[i - 1].cluster; c->buffer->info[i].cluster = c->buffer->info[i - 1].cluster;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册