提交 3c41ccb5 编写于 作者: B Behdad Esfahbod

[coretext] Use input clusters

Before, this shaper was returning UTF-16 cluster indices instead of
returning whatever cluster values the user had had set up in the buffer.
Ouch!
上级 a6b8dc87
......@@ -758,9 +758,7 @@ retry:
}
info->codepoint = notdef;
/* TODO We have to fixup clusters later. See vis_clusters in
* hb-uniscribe.cc for example. */
info->cluster = j;
info->cluster = log_clusters[j];
info->mask = advance;
info->var1.u32 = 0;
......@@ -820,7 +818,7 @@ retry:
hb_glyph_info_t *info = &buffer->info[buffer->len];
info->codepoint = glyphs[j];
info->cluster = string_indices[j];
info->cluster = log_clusters[string_indices[j]];
/* Currently, we do all x-positioning by setting the advance, we never use x-offset. */
info->mask = advance;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册