finished draw text example,and tested ok.

This commit is contained in:
2020-08-04 02:23:22 +08:00
parent cea2f8da9e
commit 824c1b0fcd
10 changed files with 62 additions and 21 deletions

View File

@@ -52,7 +52,7 @@ namespace hgl
/**
* 字符排版属性
*/
struct CharLayoutAttributes:public CharAttributes
struct CharLayoutAttributes
{
CharAttributes *attr; ///<字符基本信息

View File

@@ -121,8 +121,9 @@ namespace hgl
int sl_v_r2l();
int sl_v_l2r();
template<typename T>
int SimpleLayout (TileFont *,const BaseString<T> &); ///<简易排版
template<typename T> int SimpleLayout(TileFont *,const BaseString<T> &); ///<简易排版
// template<typename T> int SimpleLayout(TileFont *,const StringList<BaseString<T>> &); ///<简易排版
protected:
@@ -168,6 +169,9 @@ namespace hgl
int SimpleLayout (TileFont *,const UTF16String &); ///<简易排版
int SimpleLayout (TileFont *,const UTF32String &); ///<简易排版
// int SimpleLayout (TileFont *,const UTF16StringList &); ///<简易排版
// int SimpleLayout (TileFont *,const UTF32StringList &); ///<简易排版
};//class TextLayout
}//namespace graph
}//namespace hgl