Revert "Update to match harfbuzz subsetting 3.0.0 api. (#29266)" (flutter/engine#29412)

This reverts commit f1446eb029.
This commit is contained in:
xster
2021-10-29 12:12:32 -07:00
committed by GitHub
parent d5d2a95e8b
commit 32d63b08fa

View File

@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include <hb-subset.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
@@ -59,16 +58,12 @@ struct HarfBuzzSubset {
// The prior version of harfbuzz automatically dropped layout tables,
// but in the new version they are kept by default. So re-add them to the
// drop list to retain the same behaviour.
hb_set_add(
hb_subset_input_set(input, 3 /* HB_SUBSET_SETS_DROP_TABLE_TAG */),
HB_TAG('G', 'S', 'U', 'B'));
hb_set_add(
hb_subset_input_set(input, 3 /* HB_SUBSET_SETS_DROP_TABLE_TAG */),
HB_TAG('G', 'P', 'O', 'S'));
hb_set_add(
hb_subset_input_set(input, 3 /* HB_SUBSET_SETS_DROP_TABLE_TAG */),
HB_TAG('G', 'D', 'E', 'F'));
hb_set_add(hb_subset_input_drop_tables_set(input),
HB_TAG('G', 'S', 'U', 'B'));
hb_set_add(hb_subset_input_drop_tables_set(input),
HB_TAG('G', 'P', 'O', 'S'));
hb_set_add(hb_subset_input_drop_tables_set(input),
HB_TAG('G', 'D', 'E', 'F'));
return HarfbuzzWrappers::HbFacePtr(hb_subset_or_fail(face, input));
}