24 lines
734 B
Plaintext
24 lines
734 B
Plaintext
$OpenBSD: patch-ui_gfx_font_util_cc,v 1.1 2020/04/02 15:11:59 robert Exp $
|
|
|
|
Index: ui/gfx/font_util.cc
|
|
--- ui/gfx/font_util.cc.orig
|
|
+++ ui/gfx/font_util.cc
|
|
@@ -6,7 +6,7 @@
|
|
|
|
#include "build/build_config.h"
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_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 defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
// Ensures the config is created on this thread.
|
|
FcConfig* config = GetGlobalFontConfig();
|
|
DCHECK(config);
|