mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
fix
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user