Cocos2d::label fully justified

Cocos2d::label fully justified
0.0 0

#1

Hi,
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 ?

Thanks,

Carl


#2

What version of Cocos2d-x are you using?


#3

I use the version 3.15

can you help me ?


#4

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.


#5

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.

Carl;