[util] When --verify fails, return reconstructed shape results

This commit is contained in:
Behdad Esfahbod 2017-08-30 17:07:29 -07:00
parent 099472e08b
commit 69d701b02e
2 changed files with 4 additions and 6 deletions

View File

@ -416,12 +416,10 @@ struct shape_options_t : option_group_t
*error = "Safe-to-break test failed."; *error = "Safe-to-break test failed.";
ret = false; ret = false;
if (0) /* Return the reconstructed result instead so it can be inspected. */
{
hb_buffer_set_length (buffer, 0); hb_buffer_set_length (buffer, 0);
hb_buffer_append (buffer, reconstruction, 0, -1); hb_buffer_append (buffer, reconstruction, 0, -1);
} }
}
hb_buffer_destroy (reconstruction); hb_buffer_destroy (reconstruction);
hb_buffer_destroy (fragment); hb_buffer_destroy (fragment);

View File

@ -59,7 +59,7 @@ struct view_cairo_t
} }
void error (const char *message) void error (const char *message)
{ {
fail (false, "%s", message); g_printerr ("%s: %s\n", g_get_prgname (), message);
} }
void consume_glyphs (hb_buffer_t *buffer, void consume_glyphs (hb_buffer_t *buffer,
const char *text, const char *text,