mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 07:49:16 -04:00
25 lines
941 B
C++
25 lines
941 B
C++
--- ui/gfx/font_util.cc.orig 2021-01-07 00:37:28 UTC
|
|
+++ ui/gfx/font_util.cc
|
|
@@ -6,7 +6,7 @@
|
|
|
|
#include "build/build_config.h"
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
|
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
|
#include <fontconfig/fontconfig.h>
|
|
#include "ui/gfx/linux/fontconfig_util.h"
|
|
#endif
|
|
@@ -24,11 +24,11 @@ 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) || defined(OS_CHROMEOS)
|
|
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
|
// Ensures the config is created on this thread.
|
|
FcConfig* config = GetGlobalFontConfig();
|
|
DCHECK(config);
|
|
-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS)
|
|
+#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
|
|
|
#if defined(OS_WIN)
|
|
gfx::win::InitializeDirectWrite();
|