]>
Commit | Line | Data |
---|---|---|
d40d84d2 JP |
1 | -2.4.0-- qtwebengine/src/3rdparty/chromium/components/paint_preview/common/subset_font.cc.orig 2021-09-08 23:31:22.000000000 +0200 |
2 | +++ qtwebengine/src/3rdparty/chromium/components/paint_preview/common/subset_font.cc 2021-09-18 23:41:59.009246422 +0200 | |
3 | @@ -71,9 +71,9 @@ | |
4 | hb_set_t* glyphs = | |
5 | hb_subset_input_glyph_set(input.get()); // Owned by |input|. | |
6 | usage.ForEach(base::BindRepeating(&AddGlyphs, base::Unretained(glyphs))); | |
7 | - hb_subset_input_set_retain_gids(input.get(), true); | |
8 | + hb_subset_input_set_flags(input.get(), HB_SUBSET_FLAGS_RETAIN_GIDS); | |
9 | ||
10 | - HbScoped<hb_face_t> subset_face(hb_subset(face.get(), input.get())); | |
11 | + HbScoped<hb_face_t> subset_face(hb_subset_or_fail(face.get(), input.get())); | |
12 | HbScoped<hb_blob_t> subset_blob(hb_face_reference_blob(subset_face.get())); | |
13 | if (!subset_blob) | |
14 | return nullptr; | |
15 | --- qtwebengine/src/3rdparty/chromium/third_party/skia/src/pdf/SkPDFSubsetFont.cpp.orig 2021-09-08 23:31:29.000000000 +0200 | |
16 | +++ qtwebengine/src/3rdparty/chromium/third_party/skia/src/pdf/SkPDFSubsetFont.cpp 2021-09-19 00:00:20.185565236 +0200 | |
17 | @@ -71,11 +71,10 @@ | |
18 | hb_set_t* glyphs = hb_subset_input_glyph_set(input.get()); | |
19 | glyphUsage.getSetValues([&glyphs](unsigned gid) { hb_set_add(glyphs, gid);}); | |
20 | ||
21 | - hb_subset_input_set_retain_gids(input.get(), true); | |
22 | + hb_subset_input_set_flags(input.get(), HB_SUBSET_FLAGS_RETAIN_GIDS); | |
23 | // TODO: When possible, check if a font is 'tricky' with FT_IS_TRICKY. | |
24 | // If it isn't known if a font is 'tricky', retain the hints. | |
25 | - hb_subset_input_set_drop_hints(input.get(), false); | |
26 | - HBFace subset(hb_subset(face.get(), input.get())); | |
27 | + HBFace subset(hb_subset_or_fail(face.get(), input.get())); | |
28 | HBBlob result(hb_face_reference_blob(subset.get())); | |
29 | return to_data(std::move(result)); | |
30 | } |