提交 bf8c57ba 编写于 作者: B Behdad Esfahbod

[API] Add hb_face_get_blob()

Need to think more about it.
上级 2118fdb9
......@@ -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)
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册