* Google Author(s): Behdad Esfahbod
*/
-#include "hb-private.hh"
-
-#include "hb.h"
-
-#include <stdio.h>
+#include "hb.hh"
#ifdef HAVE_FREETYPE
#include "hb-ft.h"
#endif
+#ifdef HB_NO_OPEN
+#define hb_blob_create_from_file_or_fail(x) hb_blob_get_empty ()
+#endif
+
int
main (int argc, char **argv)
{
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);
printf ("Opened font file %s: %u bytes long\n", argv[1], hb_blob_get_length (blob));
/* Create the face */