2013-07-11 02:59:05 +08:00
|
|
|
//
|
|
|
|
// CCTextRender.h
|
|
|
|
// TestNewStringStuff
|
|
|
|
//
|
|
|
|
// Created by Carlo Morgantini on 5/28/13.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _FontRender_h
|
|
|
|
#define _FontRender_h
|
|
|
|
|
|
|
|
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
2013-07-17 06:18:39 +08:00
|
|
|
// FWD
|
|
|
|
class Font;
|
|
|
|
|
2013-07-11 02:59:05 +08:00
|
|
|
class TextPageDef;
|
|
|
|
|
|
|
|
class FontRender
|
|
|
|
{
|
2013-07-17 06:18:39 +08:00
|
|
|
|
2013-07-11 02:59:05 +08:00
|
|
|
public:
|
|
|
|
|
2013-07-17 06:18:39 +08:00
|
|
|
FontRender(Font *pFont) { _font = pFont; }
|
2013-07-11 02:59:05 +08:00
|
|
|
virtual ~FontRender() {}
|
|
|
|
virtual unsigned char * preparePageGlyphData(TextPageDef *thePage, char *fontName, int fontSize) = 0;
|
2013-07-17 06:18:39 +08:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
Font * _font;
|
2013-07-11 02:59:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|