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

[util] Unbreak --show-text / --show-unicode

上级 0dc3a4e0
......@@ -51,11 +51,11 @@ struct shape_consumer_t
{
output.new_line ();
output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
for (unsigned int n = shaper.num_iterations; n; n--)
{
shaper.populate_buffer (buffer, text, text_len, text_before, text_after);
if (n == 1)
output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
if (!shaper.shape (font, buffer)) {
failed = true;
hb_buffer_set_length (buffer, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册