Commit 0ae1a5b1 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

ограничен размер кеша шрифтов

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64174 954022d7-b5bf-4e40-9824-e11837661b57
parent 17009616
......@@ -36,6 +36,7 @@ namespace PdfReader
CFontsCache* pMeasurerCache = new CFontsCache();
pMeasurerCache->SetStreams(pAppFonts->GetStreams());
m_pFontManager->SetOwnerCache(pMeasurerCache);
pMeasurerCache->SetCacheSize(1);
m_pGlobalParams->SetFontManager(m_pFontManager);
}
CPdfReader::~CPdfReader()
......@@ -69,6 +70,7 @@ namespace PdfReader
CFontsCache* pMeasurerCache = new CFontsCache();
pMeasurerCache->SetStreams(m_pAppFonts->GetStreams());
m_pFontManager->SetOwnerCache(pMeasurerCache);
pMeasurerCache->SetCacheSize(1);
m_pGlobalParams->SetFontManager(m_pFontManager);
//------------------------------------------------------
......@@ -332,4 +334,4 @@ namespace PdfReader
{
return m_pFontManager;
}
}
\ No newline at end of file
}
......@@ -23,6 +23,7 @@ CXpsFile::CXpsFile(CApplicationFonts* pAppFonts)
CFontsCache* pMeasurerCache = new CFontsCache();
pMeasurerCache->SetStreams(pAppFonts->GetStreams());
m_pFontManager->SetOwnerCache(pMeasurerCache);
pMeasurerCache->SetCacheSize(16);
m_wsTempFolder = L"";
SetTempFolder(NSFile::CFileBinary::GetTempPath());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment