blob: 321f1dbab4caf271cc00bbda8a589ce3072a76df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- pdf/pdfium/pdfium_engine.cc.orig 2022-08-31 12:19:35 UTC
+++ pdf/pdfium/pdfium_engine.cc
@@ -81,7 +81,7 @@
#include "gin/public/cppgc.h"
#endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
#include "pdf/pdfium/pdfium_font_linux.h"
#endif
@@ -516,7 +516,7 @@ void InitializeSDK(bool enable_v8, FontMappingMode fon
FPDF_InitLibraryWithConfig(&config);
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
g_font_mapping_mode = font_mapping_mode;
InitializeLinuxFontMapper();
#endif
|