You need to sign in or sign up before continuing.
提交 194140d3 编写于 作者: B Behdad Esfahbod

[util] Minor

上级 5021ba2a
......@@ -73,7 +73,7 @@ struct subset_consumer_t
fprintf(stderr, "Unable to open output file\n");
return false;
}
size_t bytes_written = fwrite(data, 1, data_length, fp_out);
ssize_t bytes_written = fwrite(data, 1, data_length, fp_out);
if (bytes_written == -1) {
fprintf(stderr, "Unable to write output file\n");
......
......@@ -240,19 +240,25 @@ struct shape_options_t : option_group_t
{
if (error)
*error = "all shapers failed.";
return false;
goto fail;
}
if (normalize_glyphs)
hb_buffer_normalize_glyphs (buffer);
if (verify && !verify_buffer (buffer, text_buffer, font, error))
return false;
goto fail;
if (text_buffer)
hb_buffer_destroy (text_buffer);
return true;
fail:
if (text_buffer)
hb_buffer_destroy (text_buffer);
return false;
}
bool verify_buffer (hb_buffer_t *buffer,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册