[API] Add hb_face_get_blob()

Need to think more about it.
This commit is contained in:
Behdad Esfahbod 2011-08-03 17:38:04 -04:00
parent 2118fdb9f5
commit bf8c57ba74
2 changed files with 13 additions and 0 deletions

View File

@ -685,6 +685,16 @@ hb_face_is_immutable (hb_face_t *face)
}
hb_blob_t *
hb_face_get_blob (hb_face_t *face)
{
if (face->destroy != (hb_destroy_func_t) _hb_face_for_data_closure_destroy)
return hb_blob_get_empty ();
hb_face_for_data_closure_t *data = (hb_face_for_data_closure_t *) face->user_data;
return data->blob;
}
hb_blob_t *
hb_face_reference_table (hb_face_t *face,
hb_tag_t tag)

View File

@ -79,6 +79,9 @@ hb_bool_t
hb_face_is_immutable (hb_face_t *face);
hb_blob_t *
hb_face_get_blob (hb_face_t *face);
hb_blob_t *
hb_face_reference_table (hb_face_t *face,
hb_tag_t tag);