Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在cocos2d-x我使用 CCLABELTTF 时,它会按连续顺序写入单词。是否有一个类cocos2d-x可以获取位置、宽度、高度和字符串,然后将其写入屏幕上的那个矩形,如果字符串的长度大于矩形的大小,将其分成多行?
cocos2d-x
CCLabelTTF 类的这个方法呢?
bool initWithString (const char *string, const char *fontName, float fontSize, const CCSize &dimensions, CCTextAlignment hAlignment, CCVerticalTextAlignment vAlignment)