Commit a279763f authored by Oleg Korshul's avatar Oleg Korshul Committed by Alexander Trofimov

Субпиксельный рендеринг текста

parent 0723ad34
...@@ -67,6 +67,8 @@ namespace Aggplus ...@@ -67,6 +67,8 @@ namespace Aggplus
#endif #endif
m_dDpiTile = -1; m_dDpiTile = -1;
m_nTextRenderMode = FT_RENDER_MODE_NORMAL;
} }
CGraphics::CGraphics(CImage* pImage) : m_dwConfigFlags(0) CGraphics::CGraphics(CImage* pImage) : m_dwConfigFlags(0)
...@@ -103,6 +105,8 @@ namespace Aggplus ...@@ -103,6 +105,8 @@ namespace Aggplus
#endif #endif
m_dDpiTile = -1; m_dDpiTile = -1;
m_nTextRenderMode = FT_RENDER_MODE_NORMAL;
} }
CGraphics::~CGraphics() CGraphics::~CGraphics()
...@@ -1062,6 +1066,7 @@ namespace Aggplus ...@@ -1062,6 +1066,7 @@ namespace Aggplus
oM1.TransformPoint(_x, _y); oM1.TransformPoint(_x, _y);
pFont->SetTextMatrix((float)mass[0], (float)mass[1], (float)mass[2], (float)mass[3], (float)mass[4], (float)mass[5]); pFont->SetTextMatrix((float)mass[0], (float)mass[1], (float)mass[2], (float)mass[3], (float)mass[4], (float)mass[5]);
m_nTextRenderMode = pFont->m_nRENDER_MODE;
pFont->LoadString2C(lText, (float)_x, (float)_y); pFont->LoadString2C(lText, (float)_x, (float)_y);
float fX = 0; float fX = 0;
......
...@@ -287,6 +287,8 @@ public: ...@@ -287,6 +287,8 @@ public:
double m_dDpiTile; double m_dDpiTile;
CGraphics_ClipState m_oClipState; CGraphics_ClipState m_oClipState;
int m_nTextRenderMode;
public: public:
......
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