ULRE/inc/hgl/graph/font/Font.h

36 lines
669 B
C
Raw Normal View History

2020-06-28 22:16:07 +08:00
#ifndef HGL_GRAPH_FONT_INCLUDE
#define HGL_GRAPH_FONT_INCLUDE
2020-07-28 16:34:29 +08:00
#include<hgl/type/DataType.h>
2020-06-28 22:16:07 +08:00
namespace hgl
{
namespace graph
{
2020-07-28 16:34:29 +08:00
constexpr size_t MAX_FONT_NAME_LENGTH=128;
2020-06-28 22:16:07 +08:00
/**
*
*/
struct Font
{
2020-07-28 16:34:29 +08:00
os_char name[MAX_FONT_NAME_LENGTH]; ///<字体名称
2020-06-28 22:16:07 +08:00
int width; ///<宽度
int height; ///<高度
bool bold; ///<加粗
bool italic; ///<右斜
bool anti; ///<反矩齿
public:
Font();
2020-07-28 16:34:29 +08:00
Font(const os_char *,int,int,bool,bool,bool=true);
2020-06-28 22:16:07 +08:00
CompOperatorMemcmp(const Font &); ///<比较操作符重载
};//struct Font
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_FONT_INCLUDE