aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-ui_gfx_font__util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-ui_gfx_font__util.cc')
-rw-r--r--devel/electron37/files/patch-ui_gfx_font__util.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-ui_gfx_font__util.cc b/devel/electron37/files/patch-ui_gfx_font__util.cc
new file mode 100644
index 000000000000..aaf2c05fc2ed
--- /dev/null
+++ b/devel/electron37/files/patch-ui_gfx_font__util.cc
@@ -0,0 +1,20 @@
+--- ui/gfx/font_util.cc.orig 2024-04-15 20:34:30 UTC
++++ ui/gfx/font_util.cc
+@@ -6,7 +6,7 @@
+
+ #include "build/build_config.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include <fontconfig/fontconfig.h>
+ #include "ui/gfx/linux/fontconfig_util.h"
+ #endif
+@@ -24,7 +24,7 @@ void InitializeFonts() {
+ // background (resources have not yet been granted to cast) since it prevents
+ // the long delay the user would have seen on first rendering.
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Early initialize FontConfig.
+ InitializeGlobalFontConfigAsync();
+ #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)