Commit 53ce22f6 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 8d1a8269
......@@ -24,7 +24,7 @@ namespace NSHtmlRenderer
class CASCSVGWriter : public IRenderer
{
public:
CASCSVGWriter();
CASCSVGWriter(bool bIsInitializeFonts = true);
~CASCSVGWriter();
public:
......
......@@ -5,7 +5,7 @@
namespace NSHtmlRenderer
{
CASCSVGWriter::CASCSVGWriter()
CASCSVGWriter::CASCSVGWriter(bool bIsInitializeFonts)
{
m_dDpiX = 72;
m_dDpiY = 72;
......@@ -33,8 +33,12 @@ namespace NSHtmlRenderer
m_pFullTransform = new Aggplus::CMatrix();
//todo вроде как подбора нет, но может нужно передавать?
m_pFontManager = new CFontManager();
m_pFontManager->Initialize();
m_pFontManager = NULL;
if (bIsInitializeFonts)
{
m_pFontManager = new CFontManager();
m_pFontManager->Initialize();
}
m_pVectorWriter = new NSHtmlRenderer::CSVGGraphicsWriter();
m_pVectorWriter->m_pSimpleConverter = m_pSimpleGraphicsConverter;
......
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