From f1446eb0290ff191533efa12182316b6acc50daa Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 28 Oct 2021 14:19:03 -0600 Subject: [PATCH] Update to match harfbuzz subsetting 3.0.0 api. (flutter/engine#29266) hb_subset_input_drop_tables_set (...) was removed. Replace it with a call to hb_subset_input_set (...). --- engine/src/flutter/tools/font-subset/main.cc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/tools/font-subset/main.cc b/engine/src/flutter/tools/font-subset/main.cc index 0bce04d88a..a793dabea3 100644 --- a/engine/src/flutter/tools/font-subset/main.cc +++ b/engine/src/flutter/tools/font-subset/main.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include + #include #include #include @@ -58,12 +59,16 @@ 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_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')); + + 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')); return HarfbuzzWrappers::HbFacePtr(hb_subset_or_fail(face, input)); }