This commit is contained in:
Oleg Korshul
2017-02-01 19:20:12 +03:00
parent 10964d32e6
commit 774f9c42cb
2 changed files with 12 additions and 8 deletions

View File

@ -1261,6 +1261,10 @@ namespace NSHtmlRenderer
m_pInternal->m_bPageOpened = false;
m_pInternal->m_pFontManager = m_pInternal->m_oApplicationFonts.GenerateFontManager();
CFontsCache* pGraphicsFontCache = new CFontsCache();
pGraphicsFontCache->SetStreams(m_pInternal->m_oApplicationFonts.GetStreams());
pGraphicsFontCache->SetCacheSize(16);
m_pInternal->m_pFontManager->SetOwnerCache(pGraphicsFontCache);
m_pInternal->m_oFont.SetDefaultParams();
m_pInternal->m_oInstalledFont.SetDefaultParams();