2020-06-28 22:16:07 +08:00
|
|
|
#include<hgl/graph/font/Font.h>
|
2020-07-28 16:34:29 +08:00
|
|
|
#include<hgl/type/StrChar.h>
|
2020-06-28 22:16:07 +08:00
|
|
|
|
|
|
|
namespace hgl
|
|
|
|
{
|
2020-07-29 15:24:41 +08:00
|
|
|
namespace graph
|
|
|
|
{
|
|
|
|
Font::Font()
|
|
|
|
{
|
|
|
|
memset(this,0,sizeof(Font));
|
|
|
|
}
|
|
|
|
|
|
|
|
Font::Font(const os_char *n,int w,int h,bool b,bool i,bool aa)
|
|
|
|
{
|
|
|
|
memset(this,0,sizeof(Font));
|
2020-06-28 22:16:07 +08:00
|
|
|
|
2020-07-29 15:24:41 +08:00
|
|
|
hgl::strcpy(name,MAX_FONT_NAME_LENGTH,n);
|
2020-06-28 22:16:07 +08:00
|
|
|
|
2020-07-29 15:24:41 +08:00
|
|
|
width=w;
|
|
|
|
height=h;
|
2020-06-28 22:16:07 +08:00
|
|
|
|
2020-07-29 15:24:41 +08:00
|
|
|
bold=b;
|
|
|
|
italic=i;
|
2020-06-28 22:16:07 +08:00
|
|
|
|
2020-07-29 15:24:41 +08:00
|
|
|
anti=aa;
|
|
|
|
}
|
|
|
|
}//namespace graph
|
2020-06-28 22:16:07 +08:00
|
|
|
}//namespace hgl
|