diff options
Diffstat (limited to 'test/api/hb-test.h')
-rw-r--r-- | test/api/hb-test.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/test/api/hb-test.h b/test/api/hb-test.h index 7390e57a7..2be47beb7 100644 --- a/test/api/hb-test.h +++ b/test/api/hb-test.h @@ -27,9 +27,7 @@ #ifndef HB_TEST_H #define HB_TEST_H -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif +#include <hb-config.hh> #include <hb-glib.h> @@ -52,6 +50,17 @@ HB_BEGIN_DECLS ((const char *) s)[2], \ ((const char *) s)[3])) +#define HB_FACE_ADD_TABLE(face, tag, data) \ + do { \ + hb_blob_t *blob = hb_blob_create_or_fail ((data), \ + sizeof (data), \ + HB_MEMORY_MODE_READONLY, \ + NULL, NULL); \ + hb_face_builder_add_table ((face), \ + HB_TAG_CHAR4(tag), \ + blob); \ + hb_blob_destroy (blob); \ + } while (0) static inline const char * srcdir (void) |