2020-06-29 19:49:54 +08:00
|
|
|
|
#ifndef HGL_GRAPH_TILE_FONT_INCLUDE
|
|
|
|
|
#define HGL_GRAPH_TILE_FONT_INCLUDE
|
|
|
|
|
|
|
|
|
|
#include<hgl/graph/TileData.h>
|
|
|
|
|
#include<hgl/graph/font/FontSource.h>
|
2020-07-01 20:36:49 +08:00
|
|
|
|
#include<hgl/type/UnicodeBlocks.h>
|
2020-06-29 19:49:54 +08:00
|
|
|
|
|
|
|
|
|
namespace hgl
|
|
|
|
|
{
|
|
|
|
|
namespace graph
|
|
|
|
|
{
|
2020-07-01 20:36:49 +08:00
|
|
|
|
/**
|
|
|
|
|
* Tile字符管理<br>
|
|
|
|
|
* 本模块允许有多个字符数据来源,每个来源也可以对应多个unicode块, 但一个unicode块只能对应一个字体数据来源
|
|
|
|
|
*/
|
2020-06-29 19:49:54 +08:00
|
|
|
|
class TileFont
|
|
|
|
|
{
|
2020-07-07 19:16:23 +08:00
|
|
|
|
FontSource *source;
|
2020-06-29 19:49:54 +08:00
|
|
|
|
TileData *tile_data;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2020-07-03 21:11:47 +08:00
|
|
|
|
TileFont(TileData *td,FontSource *fs);
|
|
|
|
|
virtual ~TileFont();
|
2020-06-29 19:49:54 +08:00
|
|
|
|
};//class TileFont
|
|
|
|
|
}//namespace graph
|
|
|
|
|
}//namespace hgl
|
|
|
|
|
#endif//HGL_GRAPH_TILE_FONT_INCLUDE
|