Index: fpdfsdk/src/fpdfview.cpp |
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp |
index 9ad33848032e59ce1226b0fbeabf64bf040778c2..2700aebddc079eae29941e59776b63a949b37d66 100644 |
--- a/fpdfsdk/src/fpdfview.cpp |
+++ b/fpdfsdk/src/fpdfview.cpp |
@@ -91,9 +91,14 @@ CFontMapper* g_pFontMapper = NULL; |
#endif // #if _FX_OS_ == _FX_LINUX_EMBEDDED_ |
DLLEXPORT void STDCALL FPDF_InitLibrary() { |
+ FPDF_InitLibraryWithConfig(nullptr); |
+} |
+ |
+DLLEXPORT void STDCALL FPDF_InitLibraryWithConfig( |
+ const FPDF_LIBRARY_CONFIG* cfg) { |
Nico
2015/08/13 22:02:06
This too isn't clang-formatted. How do you upload
|
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(); |