[subset] set no prune unicode ranges flag in preprocessor.

To avoid modifying the original unicode range values in the source font.
This commit is contained in:
Garret Rieger 2022-12-07 22:50:09 +00:00
parent 8c021462e6
commit c097abab52
1 changed files with 2 additions and 1 deletions

View File

@ -500,7 +500,8 @@ hb_subset_preprocess (hb_face_t *source)
hb_subset_input_set_flags(input, hb_subset_input_set_flags(input,
HB_SUBSET_FLAGS_NOTDEF_OUTLINE | HB_SUBSET_FLAGS_NOTDEF_OUTLINE |
HB_SUBSET_FLAGS_GLYPH_NAMES | 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; input->attach_accelerator_data = true;
// Always use long loca in the preprocessed version. This allows // Always use long loca in the preprocessed version. This allows