Moved STROKE_FONT from PAINTER to GAL.

This commit is contained in:
Maciej Suminski
2013-07-04 11:37:43 +02:00
parent d0278dad15
commit be415dab1d
8 changed files with 47 additions and 39 deletions
-6
View File
@@ -25,8 +25,6 @@
*/
#include <painter.h>
#include <gal/stroke_font.h>
#include <newstroke_font.h>
using namespace KiGfx;
@@ -70,14 +68,11 @@ void RENDER_SETTINGS::Update()
PAINTER::PAINTER( GAL* aGal ) :
m_gal( aGal ), m_settings( NULL )
{
m_stroke_font = new STROKE_FONT( aGal );
m_stroke_font->LoadNewStrokeFont( newstroke_font, newstroke_font_bufsize );
}
PAINTER::~PAINTER()
{
delete m_stroke_font;
delete m_settings;
}
@@ -85,5 +80,4 @@ PAINTER::~PAINTER()
void PAINTER::SetGAL( GAL* aGal )
{
m_gal = aGal;
m_stroke_font->SetGAL( aGal );
}