Merge pull request #2865 from minggo/master

add description of path that custom font can put in
This commit is contained in:
minggo 2013-06-10 08:04:41 -07:00
commit 48d5dafe09
1 changed files with 14 additions and 5 deletions

View File

@ -40,11 +40,20 @@ NS_CC_BEGIN
/** @brief CCLabelTTF is a subclass of CCTextureNode that knows how to render text labels
*
* All features from CCTextureNode are valid in CCLabelTTF
*
* CCLabelTTF objects are slow. Consider using CCLabelAtlas or CCLabelBMFont instead.
*/
*
* All features from CCTextureNode are valid in CCLabelTTF
*
* CCLabelTTF objects are slow. Consider using CCLabelAtlas or CCLabelBMFont instead.
*
* Custom ttf file can be put in assets/ or external storage that the Application can access.
* @code
* CCLabelTTF *label1 = CCLabelTTF::create("alignment left", "A Damn Mess", fontSize, blockSize,
* kCCTextAlignmentLeft, kCCVerticalTextAlignmentCenter);
* CCLabelTTF *label2 = CCLabelTTF::create("alignment right", "/mnt/sdcard/Scissor Cuts.ttf", fontSize, blockSize,
* kCCTextAlignmentLeft, kCCVerticalTextAlignmentCenter);
* @endcode
*
*/
class CC_DLL CCLabelTTF : public CCSprite, public CCLabelProtocol
{
public: