mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fix
This commit is contained in:
@ -45,11 +45,7 @@ public:
|
|||||||
{
|
{
|
||||||
nType = _nType;
|
nType = _nType;
|
||||||
if (nType == 0)
|
if (nType == 0)
|
||||||
{
|
|
||||||
pReader = new PdfReader::CPdfReader(pApplicationFonts);
|
pReader = new PdfReader::CPdfReader(pApplicationFonts);
|
||||||
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../../../../../../../PdfReader/Resources/CMap";
|
|
||||||
((PdfReader::CPdfReader*)pReader)->SetCMapFolder(sPath.data());
|
|
||||||
}
|
|
||||||
else if (nType == 1)
|
else if (nType == 1)
|
||||||
pReader = new CDjVuFile(pApplicationFonts);
|
pReader = new CDjVuFile(pApplicationFonts);
|
||||||
else if (nType == 2)
|
else if (nType == 2)
|
||||||
|
|||||||
@ -152,9 +152,9 @@ namespace PdfReader
|
|||||||
m_pInternal->m_pFontManager->SetOwnerCache(pMeasurerCache);
|
m_pInternal->m_pFontManager->SetOwnerCache(pMeasurerCache);
|
||||||
pMeasurerCache->SetCacheSize(1);
|
pMeasurerCache->SetCacheSize(1);
|
||||||
((GlobalParamsAdaptor*)globalParams)->SetFontManager(m_pInternal->m_pFontManager);
|
((GlobalParamsAdaptor*)globalParams)->SetFontManager(m_pInternal->m_pFontManager);
|
||||||
//#ifndef BUILDING_WASM_MODULE
|
#ifndef BUILDING_WASM_MODULE
|
||||||
globalParams->setupBaseFonts(NULL);
|
globalParams->setupBaseFonts(NULL);
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
m_eError = errNone;
|
m_eError = errNone;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user