Index: fpdfsdk/src/fpdfview.cpp |
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp |
index c2b53bebcdbcf489da2c6ea1f908a46a4347e735..414ade70705ea7b80f31d6687a278e1288c4f152 100644 |
--- a/fpdfsdk/src/fpdfview.cpp |
+++ b/fpdfsdk/src/fpdfview.cpp |
@@ -180,9 +180,14 @@ FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy) { |
CCodec_ModuleMgr* g_pCodecModule = nullptr; |
DLLEXPORT void STDCALL FPDF_InitLibrary() { |
+ FPDF_InitLibraryWithConfig(nullptr); |
+} |
+ |
+DLLEXPORT void STDCALL |
+FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) { |
g_pCodecModule = new CCodec_ModuleMgr(); |
- CFX_GEModule::Create(); |
+ CFX_GEModule::Create(cfg ? cfg->m_pUserFontPaths : nullptr); |
CFX_GEModule::Get()->SetCodecModule(g_pCodecModule); |
CPDF_ModuleMgr::Create(); |