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

No files matched your search

+2 -4
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);
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);
+1 -4
View File
@@ -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);
+1 -1
View File
@@ -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);
}