提交 dd89d958 编写于 作者: B Behdad Esfahbod

Fix cluster calculation for non-LTR text

上级 4a686846
General fixes:
=============
- Instead of forming clusters immediately, only do it if we are reversing
the text. We'd need a separate bit to indicate cluster start then.
- Right now, BTW, for non-native direction runs, we get the cluster wrong...
Should do min(input-glyphs.cluster)
- Fix TT 'kern' on/off and GPOS interaction (move kerning before GPOS)
- Do proper rounding when scaling from font space?
......
......@@ -386,6 +386,11 @@ _hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer,
}
hb_glyph_info_t orig_info = buffer->info[buffer->i];
for (unsigned int i = 1; i < num_in; i++)
{
hb_glyph_info_t *info = &buffer->info[buffer->i + i];
orig_info.cluster = MIN (orig_info.cluster, info->cluster);
}
for (unsigned int i = 0; i < num_out; i++)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册