aboutsummaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-pdf_pdfium_pdfium__engine.cc
blob: 03779d7600035d62abadc7d4d9f09df61714e114 (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-12-01 10:35:46 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
 
@@ -520,7 +520,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