Cocos2d::label fully justified

Cocos2d::label fully justified
0.0 0


I want create a label fully justified

On cocos2d ObjectiveC I use NSMutableParagraphStyle with alignement NSTextAlignmentJustified and when I create my label I use CCLabelTTF labelWithAttributedString…

He dont have equivalent on cocos2d-x… someone have already do this or can help ?




What version of Cocos2d-x are you using?


I use the version 3.15

can you help me ?


I would say you need to make this yourself. It’s not really hard to do. You can easily figure out the number of words and then the math to spread it.


is what I have done… but I asked if someone have already done :slight_smile:
It can be a good add-on on the next release.