From aace09a3ad4249ee5b11c07a7ba343f763545d01 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Tue, 6 Oct 2020 10:26:17 -0700 Subject: [PATCH] [subset] Use glyphset gsub for layout variation indices collection. --- src/hb-subset-plan.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index b58c27eeb..d055783a4 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -256,7 +256,11 @@ _populate_gids_to_retain (hb_subset_plan_t* plan, #ifndef HB_NO_VAR if (close_over_gdef) - _collect_layout_variation_indices (plan->source, plan->_glyphset, plan->gpos_lookups, plan->layout_variation_indices, plan->layout_variation_idx_map); + _collect_layout_variation_indices (plan->source, + plan->_glyphset_gsub, + plan->gpos_lookups, + plan->layout_variation_indices, + plan->layout_variation_idx_map); #endif #ifndef HB_NO_SUBSET_CFF