aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-third__party_blink_renderer_platform_fonts_font__platform__data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-third__party_blink_renderer_platform_fonts_font__platform__data.cc')
-rw-r--r--devel/electron29/files/patch-third__party_blink_renderer_platform_fonts_font__platform__data.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-third__party_blink_renderer_platform_fonts_font__platform__data.cc b/devel/electron29/files/patch-third__party_blink_renderer_platform_fonts_font__platform__data.cc
new file mode 100644
index 000000000000..8d59ae35befe
--- /dev/null
+++ b/devel/electron29/files/patch-third__party_blink_renderer_platform_fonts_font__platform__data.cc
@@ -0,0 +1,20 @@
+--- third_party/blink/renderer/platform/fonts/font_platform_data.cc.orig 2023-02-01 18:43:26 UTC
++++ third_party/blink/renderer/platform/fonts/font_platform_data.cc
+@@ -48,7 +48,7 @@
+ namespace blink {
+ namespace {
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Getting the system font render style takes a significant amount of time on
+ // Linux because looking up fonts using fontconfig can be very slow. We fetch
+ // the render style for each font family and text size, while it's very
+@@ -127,7 +127,7 @@ FontPlatformData::FontPlatformData(sk_sp<SkTypeface> t
+ style_ = WebFontRenderStyle::GetDefault();
+ #if !BUILDFLAG(IS_WIN)
+ WebFontRenderStyle system_style;
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ bool override_font_name_and_size =
+ base::FeatureList::IsEnabled(kOptimizeLinuxFonts);
+ #else