This commit is contained in:
Kulikova Svetlana
2022-09-08 18:36:46 +03:00
parent 211ca6c9f7
commit 34b5b7c973
2 changed files with 2 additions and 6 deletions

View File

@ -45,11 +45,7 @@ public:
{
nType = _nType;
if (nType == 0)
{
pReader = new PdfReader::CPdfReader(pApplicationFonts);
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../../../../../../../PdfReader/Resources/CMap";
((PdfReader::CPdfReader*)pReader)->SetCMapFolder(sPath.data());
}
else if (nType == 1)
pReader = new CDjVuFile(pApplicationFonts);
else if (nType == 2)

View File

@ -152,9 +152,9 @@ namespace PdfReader
m_pInternal->m_pFontManager->SetOwnerCache(pMeasurerCache);
pMeasurerCache->SetCacheSize(1);
((GlobalParamsAdaptor*)globalParams)->SetFontManager(m_pInternal->m_pFontManager);
//#ifndef BUILDING_WASM_MODULE
#ifndef BUILDING_WASM_MODULE
globalParams->setupBaseFonts(NULL);
//#endif
#endif
m_eError = errNone;
}