[API] Rename hb_face_create_for_data() to hb_face_create()
diff --git a/src/hb-font.cc b/src/hb-font.cc
index bb8f84c..c289f14 100644
--- a/src/hb-font.cc
+++ b/src/hb-font.cc
@@ -394,8 +394,8 @@
}
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 7f05144..17e7f91 100644
--- a/src/hb-font.h
+++ b/src/hb-font.h
@@ -41,8 +41,8 @@
*/
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 2566c05..3fe2365 100644
--- a/src/hb-ft.cc
+++ b/src/hb-ft.cc
@@ -212,7 +212,7 @@
/* 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 79d7841..e3747ce 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -86,7 +86,7 @@
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 1ad3b88..ccd0cab 100644
--- a/test/test-object.c
+++ b/test/test-object.c
@@ -61,14 +61,14 @@
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 *