[API] Rename hb_face_create_for_data() to hb_face_create()
This commit is contained in:
parent
46d6a21cc8
commit
9a14688e40
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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? */
|
||||
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user