About CCLabelTTF

About CCLabelTTF
0.0 0


hi sir

The CCLabelTTF object not provider setting CCTextAlignment function : )
I know if want to setting CCTextAlignment has two way

one is use initWithString, but i won’t to set dimenstions :stuck_out_tongue:
another is inheritance from CCLabelTTF… but i just want to set CCTextAlignment ~

Could add set alignment function for next version :slight_smile: thanks a lot!


You don’t need to set dimensions, just send (0, 0), the engine will calculate them.


ok thanks :slight_smile: