[subset] actually use the preprocessed face in hb-subset.

Tests weren't actually using the preprocessed face due to this typo in util/hb-subset.
pull/3893/head
Garret Rieger 2 years ago
parent 2c0afde737
commit 4c49daf7cd
  1. 5
      src/hb-subset-input.cc
  2. 2
      util/hb-subset.cc

@ -483,6 +483,11 @@ hb_subset_preprocess (hb_face_t *source)
hb_set_invert (hb_subset_input_set(input,
HB_SUBSET_SETS_NAME_ID));
hb_set_clear (hb_subset_input_set(input,
HB_SUBSET_SETS_NAME_LANG_ID));
hb_set_invert (hb_subset_input_set(input,
HB_SUBSET_SETS_NAME_LANG_ID));
hb_subset_input_set_flags(input,
HB_SUBSET_FLAGS_NOTDEF_OUTLINE |
HB_SUBSET_FLAGS_GLYPH_NAMES |

@ -120,7 +120,7 @@ struct subset_main_t : option_parser_t, face_options_t, output_options_t<false>
for (unsigned i = 0; i < num_iterations; i++)
{
hb_face_destroy (new_face);
new_face = hb_subset_or_fail (face, input);
new_face = hb_subset_or_fail (orig_face, input);
}
bool success = new_face;

Loading…
Cancel
Save