[subset] add note about memory management with preprocessed faces.

This commit is contained in:
Garret Rieger 2022-12-07 21:43:14 +00:00
parent 5e713e99bf
commit bc87fe952e
1 changed files with 5 additions and 0 deletions

View File

@ -456,6 +456,11 @@ hb_subset_input_pin_axis_location (hb_subset_input_t *input,
* subsetter. Future subsetting operations can then use the precomputed data
* to speed up the subsetting operation. Returns a new hb_face_t*.
*
* Note: the preprocessed face may contain sub-blobs that reference the memory
* backing the source hb_face_t*. Therefore in the case that this memory is not
* owned by the source face you will need to ensure that memory lives
* as long as the returned hb_face_t*.
*
* Since: REPLACEME
**/