[util] Minor
This commit is contained in:
parent
5021ba2a21
commit
194140d3f3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue