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