}
hb_face_t *
-hb_face_create_for_data (hb_blob_t *blob,
- unsigned int index)
+hb_face_create (hb_blob_t *blob,
+ unsigned int index)
{
if (unlikely (!blob || !hb_blob_get_length (blob)))
return &_hb_face_nil;
*/
hb_face_t *
-hb_face_create_for_data (hb_blob_t *blob,
- unsigned int index);
+hb_face_create (hb_blob_t *blob,
+ unsigned int index);
typedef hb_blob_t * (*hb_get_table_func_t) (hb_tag_t tag, void *user_data);
/* TODO: Check FT_FACE_FLAG_EXTERNAL_STREAM? */
HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE,
ft_face, destroy);
- face = hb_face_create_for_data (blob, ft_face->face_index);
+ face = hb_face_create (blob, ft_face->face_index);
hb_blob_destroy (blob);
} else {
face = hb_face_create_for_tables (get_table, ft_face, destroy);
printf ("Opened font file %s: %u bytes long\n", argv[1], hb_blob_get_length (blob));
/* Create the face */
- face = hb_face_create_for_data (blob, 0 /* first face */);
+ face = hb_face_create (blob, 0 /* first face */);
/* So, what now? */
create_face (void)
{
hb_blob_t *blob = (hb_blob_t *) create_blob ();
- hb_face_t *face = hb_face_create_for_data (blob, 0);
+ hb_face_t *face = hb_face_create (blob, 0);
hb_blob_destroy (blob);
return face;
}
static void *
create_face_inert (void)
{
- return hb_face_create_for_data (hb_blob_get_empty (), 0);
+ return hb_face_create (hb_blob_get_empty (), 0);
}
static void *