diff --git a/DEPS b/DEPS index 217d2f09b2..78575daea6 100644 --- a/DEPS +++ b/DEPS @@ -114,7 +114,7 @@ deps = { Var('fuchsia_git') + '/third_party/rapidjson' + '@' + 'ef3564c5c8824989393b87df25355baf35ff544b', 'src/third_party/harfbuzz': - Var('fuchsia_git') + '/third_party/harfbuzz' + '@' + '047b946d1d0a159d7ef9691a44a91bd1253aec6b', + Var('flutter_git') + '/third_party/harfbuzz' + '@' + 'd40d15e994ed60d32bcfc9ab87004dfb028dfbd6', 'src/third_party/libcxx': Var('fuchsia_git') + '/third_party/libcxx' + '@' + '7524ef50093a376f334a62a7e5cebf5d238d4c99', diff --git a/engine/src/flutter/third_party/txt/tests/paragraph_unittests.cc b/engine/src/flutter/third_party/txt/tests/paragraph_unittests.cc index 570ea3cbbe..979c0079ff 100644 --- a/engine/src/flutter/third_party/txt/tests/paragraph_unittests.cc +++ b/engine/src/flutter/third_party/txt/tests/paragraph_unittests.cc @@ -5592,9 +5592,9 @@ TEST_F(ParagraphTest, LINUX_ONLY(KernScaleParagraph)) { EXPECT_DOUBLE_EQ(paragraph->records_[0].offset().x(), 0); EXPECT_DOUBLE_EQ(paragraph->records_[1].offset().x(), 0); - EXPECT_DOUBLE_EQ(paragraph->records_[2].offset().x(), 207.359375f); - EXPECT_DOUBLE_EQ(paragraph->records_[3].offset().x(), 230.859375f); - EXPECT_DOUBLE_EQ(paragraph->records_[4].offset().x(), 253.34765625f); + EXPECT_DOUBLE_EQ(paragraph->records_[2].offset().x(), 207.3671875f); + EXPECT_DOUBLE_EQ(paragraph->records_[3].offset().x(), 230.8671875f); + EXPECT_DOUBLE_EQ(paragraph->records_[4].offset().x(), 253.35546875f); } TEST_F(ParagraphTest, DISABLE_ON_WINDOWS(NewlineParagraph)) { diff --git a/engine/src/flutter/tools/font-subset/fixtures/1.ttf b/engine/src/flutter/tools/font-subset/fixtures/1.ttf index 5bf1856f56..70212a7fca 100644 Binary files a/engine/src/flutter/tools/font-subset/fixtures/1.ttf and b/engine/src/flutter/tools/font-subset/fixtures/1.ttf differ diff --git a/engine/src/flutter/tools/font-subset/fixtures/2.ttf b/engine/src/flutter/tools/font-subset/fixtures/2.ttf index 4bb2c2c44d..21a46926ee 100644 Binary files a/engine/src/flutter/tools/font-subset/fixtures/2.ttf and b/engine/src/flutter/tools/font-subset/fixtures/2.ttf differ diff --git a/engine/src/flutter/tools/font-subset/fixtures/3.ttf b/engine/src/flutter/tools/font-subset/fixtures/3.ttf index 35181456b2..928beada23 100644 Binary files a/engine/src/flutter/tools/font-subset/fixtures/3.ttf and b/engine/src/flutter/tools/font-subset/fixtures/3.ttf differ diff --git a/engine/src/flutter/tools/font-subset/main.cc b/engine/src/flutter/tools/font-subset/main.cc index 0bce04d88a..fc53ef4e61 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,27 +59,17 @@ 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_set_add(hb_subset_input_set(input, HB_SUBSET_SETS_DROP_TABLE_TAG), HB_TAG('G', 'S', 'U', 'B')); - hb_set_add(hb_subset_input_drop_tables_set(input), + hb_set_add(hb_subset_input_set(input, HB_SUBSET_SETS_DROP_TABLE_TAG), HB_TAG('G', 'P', 'O', 'S')); - hb_set_add(hb_subset_input_drop_tables_set(input), + hb_set_add(hb_subset_input_set(input, HB_SUBSET_SETS_DROP_TABLE_TAG), HB_TAG('G', 'D', 'E', 'F')); return HarfbuzzWrappers::HbFacePtr(hb_subset_or_fail(face, input)); } }; -template -struct HarfBuzzSubset(), - std::declval()))>> { - // This is the HarfBuzz 2.0 (non-public) interface, used if it exists. - // This code should be removed as soon as all users are migrated to the newer - // API. - static HarfbuzzWrappers::HbFacePtr Make(hb_face_t* face, T input) { - return HarfbuzzWrappers::HbFacePtr(hb_subset(face, input)); - } -}; int main(int argc, char** argv) { if (argc != 3) {