From bd3b978c89707fe51084afb452a296595888b279 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Fri, 10 Apr 2015 10:18:33 +0000 Subject: [PATCH] [AUTO]: updating luabinding automatically --- cocos/scripting/lua-bindings/auto/api/Text.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/cocos/scripting/lua-bindings/auto/api/Text.lua b/cocos/scripting/lua-bindings/auto/api/Text.lua index e324a33a70..2c8527006a 100644 --- a/cocos/scripting/lua-bindings/auto/api/Text.lua +++ b/cocos/scripting/lua-bindings/auto/api/Text.lua @@ -54,9 +54,15 @@ -- Sets the font name of label.
-- If you are trying to use a system font, you could just pass a font name
-- If you are trying to use a TTF, you should pass a file path to the TTF file
--- Usage: Text *text = Text::create("Hello", "Arial", 20);create a system font UIText
--- text->setFontName("Marfelt"); it will change the font to system font no matter the previous font type is TTF or system font
--- text->setFontName("xxxx/xxx.ttf");it will change the font to TTF font no matter the previous font type is TTF or system font
+-- Usage:
+-- code
+-- create a system font UIText
+-- Text *text = Text::create("Hello", "Arial", 20);
+-- it will change the font to system font no matter the previous font type is TTF or system font
+-- text->setFontName("Marfelt");
+-- it will change the font to TTF font no matter the previous font type is TTF or system font
+-- text->setFontName("xxxx/xxx.ttf");
+-- endcode
-- param name Font name. -- @function [parent=#Text] setFontName -- @param self @@ -105,7 +111,8 @@ -------------------------------- -- Gets the string length of the label.
-- Note: This length will be larger than the raw string length,
--- if you want to get the raw string length, you should call this->getString().size() instead.
+-- if you want to get the raw string length,
+-- you should call this->getString().size() instead.
-- return String length. -- @function [parent=#Text] getStringLength -- @param self