diff --git a/src/hb-font.cc b/src/hb-font.cc index bb8f84c25..c289f1486 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -394,8 +394,8 @@ _hb_face_for_data_get_table (hb_tag_t tag, void *user_data) } 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; diff --git a/src/hb-font.h b/src/hb-font.h index 7f05144cf..17e7f91e3 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -41,8 +41,8 @@ typedef struct _hb_font_t hb_font_t; */ 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); diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 2566c0551..3fe236515 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -212,7 +212,7 @@ hb_ft_face_create (FT_Face ft_face, /* 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); diff --git a/src/test.cc b/src/test.cc index 79d7841b4..e3747ce48 100644 --- a/src/test.cc +++ b/src/test.cc @@ -86,7 +86,7 @@ main (int argc, char **argv) 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? */ diff --git a/test/test-object.c b/test/test-object.c index 1ad3b8885..ccd0cabb8 100644 --- a/test/test-object.c +++ b/test/test-object.c @@ -61,14 +61,14 @@ static void * 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 *