From ecb46f701376e127de68f40ee0bda98c0ec6c63a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Jun 2023 12:18:33 -0600 Subject: [PATCH] [subset/cff1] Comment --- src/hb-subset-plan.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 089ca83e8..26c923a17 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -703,6 +703,9 @@ _populate_gids_to_retain (hb_subset_plan_t* plan, { OT::glyf_accelerator_t glyf (plan->source); #ifndef HB_NO_SUBSET_CFF + // Note: we cannot use inprogress_accelerator here, since it has not been + // created yet. So in case of preprocessed-face (and otherwise), we do an + // extra sanitize pass here, which is not ideal. OT::cff1::accelerator_subset_t stack_cff (plan->accelerator ? nullptr : plan->source); const OT::cff1::accelerator_subset_t *cff (plan->accelerator ? plan->accelerator->cff1_accel.get () : &stack_cff); #endif