From bc87fe952e62624464933913bcba5874b49379a9 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 7 Dec 2022 21:43:14 +0000 Subject: [PATCH] [subset] add note about memory management with preprocessed faces. --- src/hb-subset-input.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hb-subset-input.cc b/src/hb-subset-input.cc index d210a8e79..b354baf54 100644 --- a/src/hb-subset-input.cc +++ b/src/hb-subset-input.cc @@ -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 **/