blob: 427c2412caea7fa671c61365d930df8220ef24f6 (
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 2023-03-09 06:31:50 UTC
+++ pdf/pdfium/pdfium_engine.cc
@@ -84,7 +84,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
@@ -526,7 +526,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
|