diff options
author | tensor5 | 2021-09-27 06:08:25 +0000 |
---|---|---|
committer | tensor5 | 2021-09-27 06:08:25 +0000 |
commit | 08d1f2f5701e8f31e0c359007aa25efeb3c74254 (patch) | |
tree | fffe60aa576f4b9c1406a228bb5ba063fd20b5ea /chromium-harfbuzz-3.0.0.patch | |
download | aur-08d1f2f5701e8f31e0c359007aa25efeb3c74254.tar.gz |
addpkg: electron14 14.0.1
git-svn-id: file:///srv/repos/svn-community/svn@1025724 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Diffstat (limited to 'chromium-harfbuzz-3.0.0.patch')
-rw-r--r-- | chromium-harfbuzz-3.0.0.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium-harfbuzz-3.0.0.patch b/chromium-harfbuzz-3.0.0.patch new file mode 100644 index 000000000000..c7724336bfba --- /dev/null +++ b/chromium-harfbuzz-3.0.0.patch @@ -0,0 +1,20 @@ +# https://github.com/chromium/chromium/commit/b289f6f3fcbc + +diff --git a/components/paint_preview/common/subset_font.cc b/components/paint_preview/common/subset_font.cc +index 8ff0540d9a..20a7d37474 100644 +--- a/components/paint_preview/common/subset_font.cc ++++ b/components/paint_preview/common/subset_font.cc +@@ -72,9 +72,11 @@ sk_sp<SkData> SubsetFont(SkTypeface* typeface, const GlyphUsage& usage) { + hb_set_t* glyphs = + hb_subset_input_glyph_set(input.get()); // Owned by |input|. + usage.ForEach(base::BindRepeating(&AddGlyphs, base::Unretained(glyphs))); +- hb_subset_input_set_retain_gids(input.get(), true); ++ hb_subset_input_set_flags(input.get(), HB_SUBSET_FLAGS_RETAIN_GIDS); + +- HbScoped<hb_face_t> subset_face(hb_subset(face.get(), input.get())); ++ HbScoped<hb_face_t> subset_face(hb_subset_or_fail(face.get(), input.get())); ++ if (!subset_face) ++ return nullptr; + HbScoped<hb_blob_t> subset_blob(hb_face_reference_blob(subset_face.get())); + if (!subset_blob) + return nullptr; |