ULRE/src/SceneGraph/font/Font.cpp
2020-07-29 15:24:41 +08:00

29 lines
531 B
C++

#include<hgl/graph/font/Font.h>
#include<hgl/type/StrChar.h>
namespace hgl
{
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));
hgl::strcpy(name,MAX_FONT_NAME_LENGTH,n);
width=w;
height=h;
bold=b;
italic=i;
anti=aa;
}
}//namespace graph
}//namespace hgl