This commit is contained in:
Behdad Esfahbod 2018-10-11 15:42:54 -04:00
parent 0744a02cb1
commit 1d995a340b
3 changed files with 4 additions and 9 deletions

View File

@ -58,10 +58,8 @@ hb_subset_test_open_font (const char *font_path)
hb_blob_t *blob = hb_blob_create_from_file (path); hb_blob_t *blob = hb_blob_create_from_file (path);
if (hb_blob_get_length (blob) == 0) if (hb_blob_get_length (blob) == 0)
{ g_error ("Font not found.");
printf ("The test font is not found.");
exit (1);
}
hb_face_t *face = hb_face_create (blob, 0); hb_face_t *face = hb_face_create (blob, 0);
hb_blob_destroy (blob); hb_blob_destroy (blob);

View File

@ -149,10 +149,7 @@ main (int argc, char **argv)
hb_blob_t *blob = hb_blob_create_from_file (path); hb_blob_t *blob = hb_blob_create_from_file (path);
if (hb_blob_get_length (blob) == 0) if (hb_blob_get_length (blob) == 0)
{ g_error ("Font not found.");
printf ("The test font is not found.");
return 1;
}
hb_face_t *face = hb_face_create (blob, 0); hb_face_t *face = hb_face_create (blob, 0);
font = hb_font_create (face); font = hb_font_create (face);

View File

@ -10,7 +10,7 @@ int main(int argc, char **argv) {
const char *font_data = hb_blob_get_data (blob, &len); const char *font_data = hb_blob_get_data (blob, &len);
if (len == 0) if (len == 0)
{ {
printf ("The test font is not found."); printf ("Font not found.\n");
exit (1); exit (1);
} }