Minor
This commit is contained in:
parent
0744a02cb1
commit
1d995a340b
@ -58,10 +58,8 @@ hb_subset_test_open_font (const char *font_path)
|
||||
|
||||
hb_blob_t *blob = hb_blob_create_from_file (path);
|
||||
if (hb_blob_get_length (blob) == 0)
|
||||
{
|
||||
printf ("The test font is not found.");
|
||||
exit (1);
|
||||
}
|
||||
g_error ("Font not found.");
|
||||
|
||||
hb_face_t *face = hb_face_create (blob, 0);
|
||||
hb_blob_destroy (blob);
|
||||
|
||||
|
@ -149,10 +149,7 @@ main (int argc, char **argv)
|
||||
|
||||
hb_blob_t *blob = hb_blob_create_from_file (path);
|
||||
if (hb_blob_get_length (blob) == 0)
|
||||
{
|
||||
printf ("The test font is not found.");
|
||||
return 1;
|
||||
}
|
||||
g_error ("Font not found.");
|
||||
|
||||
hb_face_t *face = hb_face_create (blob, 0);
|
||||
font = hb_font_create (face);
|
||||
|
@ -10,7 +10,7 @@ int main(int argc, char **argv) {
|
||||
const char *font_data = hb_blob_get_data (blob, &len);
|
||||
if (len == 0)
|
||||
{
|
||||
printf ("The test font is not found.");
|
||||
printf ("Font not found.\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user