diff --git a/include/LCUI/font/textstyle.h b/include/LCUI/font/textstyle.h index 80f6350b..cb8b0899 100755 --- a/include/LCUI/font/textstyle.h +++ b/include/LCUI/font/textstyle.h @@ -23,8 +23,7 @@ typedef enum font_decoration { }; -typedef struct _LCUI_TextStyle -{ +typedef struct _LCUI_TextStyle { LCUI_BOOL _family:1; LCUI_BOOL _style:1; LCUI_BOOL _weight:1; diff --git a/src/font/textstyle.c b/src/font/textstyle.c index 24cdf8ad..d9cd062e 100755 --- a/src/font/textstyle.c +++ b/src/font/textstyle.c @@ -104,21 +104,21 @@ TextStyle_FontBackColor( LCUI_TextStyle *style, LCUI_RGB color ) /* 设置字体样式 */ LCUI_API void -TextStyle_FontStyle( LCUI_TextStyle *style, enum_font_style fontstyle ) +TextStyle_FontStyle( LCUI_TextStyle *style, enum font_style fontstyle ) { style->style = fontstyle; style->_style = TRUE; } LCUI_API void -TextStyle_FontWeight( LCUI_TextStyle *style, enum_font_weight fontweight ) +TextStyle_FontWeight( LCUI_TextStyle *style, enum font_weight fontweight ) { style->weight = fontweight; style->_weight = TRUE; } LCUI_API void -TextStyle_FontDecoration( LCUI_TextStyle *style, enum_font_decoration decoration ) +TextStyle_FontDecoration( LCUI_TextStyle *style, enum font_decoration decoration ) /* 设置字体下划线 */ { style->decoration = decoration;