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

Extend into main buffer if extension hit end of out-buffer merging clusters

上级 5ced012d
......@@ -468,6 +468,11 @@ hb_buffer_t::merge_out_clusters (unsigned int start,
while (end < out_len && out_info[end - 1].cluster == out_info[end].cluster)
end++;
/* If we hit the end of out-buffer, continue in buffer. */
if (end == out_len)
for (unsigned i = idx; i < len && info[i].cluster == out_info[end - 1].cluster; i++)
info[i].cluster = cluster;
for (unsigned int i = start; i < end; i++)
out_info[i].cluster = cluster;
}
......
......@@ -176,15 +176,6 @@ _hb_ot_shape_complex_setup_masks_thai (hb_ot_map_t *map HB_UNUSED,
sizeof (buffer->out_info[0]) * (end - start - 2));
buffer->out_info[start] = t;
/* XXX Make this easier! */
/* Make cluster */
for (; buffer->idx < count;)
if (buffer->cur().cluster == buffer->prev().cluster)
buffer->next_glyph ();
else
break;
end = buffer->out_len;
buffer->merge_out_clusters (start, end);
}
buffer->swap_buffers ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册