#include "hb.hh"
#include "hb-ot.h"
-#include <stdlib.h>
-#include <stdio.h>
-
#ifdef HB_NO_OPEN
-#define hb_blob_create_from_file(x) hb_blob_get_empty ()
+#define hb_blob_create_from_file_or_fail(x) hb_blob_get_empty ()
#endif
int
exit (1);
}
- hb_blob_t *blob = hb_blob_create_from_file (argv[1]);
+ hb_blob_t *blob = hb_blob_create_from_file_or_fail (argv[1]);
+ assert (blob);
hb_face_t *face = hb_face_create (blob, 0 /* first face */);
hb_font_t *font = hb_font_create (face);
hb_blob_destroy (blob);