diff --git a/src/hb-font.cc b/src/hb-font.cc index 0406e10cc..d92f5984e 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -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) diff --git a/src/hb-font.h b/src/hb-font.h index 37d36b4d2..2675c6e0b 100644 --- a/src/hb-font.h +++ b/src/hb-font.h @@ -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);