From 2b6d74b42e2320f2caf8a99dcf98ef692819d689 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Tue, 31 Jan 2023 17:37:37 +0000 Subject: [PATCH] [subset] for keep everything, don't drop any tables. --- src/hb-subset-input.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hb-subset-input.cc b/src/hb-subset-input.cc index 1c7b1eb5e..b6c09d9d9 100644 --- a/src/hb-subset-input.cc +++ b/src/hb-subset-input.cc @@ -404,10 +404,14 @@ hb_subset_input_keep_everything (hb_subset_input_t *input) hb_set_invert (set); } + // Don't drop any tables + hb_set_clear (hb_subset_input_set (input, HB_SUBSET_SETS_DROP_TABLE_TAG)); + hb_subset_input_set_flags (input, HB_SUBSET_FLAGS_NOTDEF_OUTLINE | HB_SUBSET_FLAGS_GLYPH_NAMES | - HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES); + HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES | + HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED); } #ifndef HB_NO_VAR