From c097abab52c51568f40b443576dbe030ff3cae89 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 7 Dec 2022 22:50:09 +0000 Subject: [PATCH] [subset] set no prune unicode ranges flag in preprocessor. To avoid modifying the original unicode range values in the source font. --- src/hb-subset-input.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-subset-input.cc b/src/hb-subset-input.cc index b354baf54..8855d56f4 100644 --- a/src/hb-subset-input.cc +++ b/src/hb-subset-input.cc @@ -500,7 +500,8 @@ hb_subset_preprocess (hb_face_t *source) hb_subset_input_set_flags(input, HB_SUBSET_FLAGS_NOTDEF_OUTLINE | HB_SUBSET_FLAGS_GLYPH_NAMES | - HB_SUBSET_FLAGS_RETAIN_GIDS); + HB_SUBSET_FLAGS_RETAIN_GIDS | + HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES); input->attach_accelerator_data = true; // Always use long loca in the preprocessed version. This allows