CCLabelTTF question


Hi, I have a question.
I use cocos2d-1.0.1-x-0.9.1.
When I use the following method:

CCLabelTTF::labelWithString(“Hello\nworld”, “Thonburi”, 16);

In ios, Will get the wrong show.
Other (android, win) is not.
Is that a bug?

Sorry my English is not good.


Excuse me, do you mean the string “Hello\nworld” can not break to a new line automatically? Or any other problem?
Pasting a screenshot to describe this wrong show would be fine.


I am sorry.
Please see screenshot.

In win32:

In ios:


Yeap, I have reproduced it.
Thank you. bug #693 is created for it.


It is fixed. You can get the lastest code from github and have a try.