From 32d63b08fa9a3622d92739fc1fa8ae206d4fecf5 Mon Sep 17 00:00:00 2001 From: xster Date: Fri, 29 Oct 2021 12:12:32 -0700 Subject: [PATCH] Revert "Update to match harfbuzz subsetting 3.0.0 api. (#29266)" (flutter/engine#29412) This reverts commit f1446eb0290ff191533efa12182316b6acc50daa. --- engine/src/flutter/tools/font-subset/main.cc | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/engine/src/flutter/tools/font-subset/main.cc b/engine/src/flutter/tools/font-subset/main.cc index a793dabea3..0bce04d88a 100644 --- a/engine/src/flutter/tools/font-subset/main.cc +++ b/engine/src/flutter/tools/font-subset/main.cc @@ -3,7 +3,6 @@ // found in the LICENSE file. #include - #include #include #include @@ -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)); }