Is <#float width#> involved with text wrapping at all?
Am I right to say that <#CCTextAlignment alignment#> aligns the text to either left/ center /top depending on which kCCTextAlignmentPosition is set?
What does <#cocos2d::CCPoint imageOffset#> do exactly?
I’ve tried looking at the TestCpp but that only got me more confused, if anyone can help it’s greatly appreciated!
I’m in the same boat as you, I’m bumping this.
If it supports word wrapping, it doesn’t do it the same way CCLabelTTF does it (the constructors are different, no CCSize arg )
Hoping a cocos2d-x guru can help
Hi lance, thanks for confirming, I tried setting the width parameter to a dozen different numbers, but the text I have doesn’t wrap.
The text wraps if I use a newline character ‘’ though, do you think that this is a bug?
Any example of working text wrapping code would help a lot in debugging!
Edit:
Figured it out, word wrapping only works on entire words, it does not wrap a really long continuous word, but it will put new words on a new line if there are spaces in between!