forked from firka/flutter
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 (...).
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <hb-subset.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user