CCLabelTTF question


#1

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.


#2

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.


#3

I am sorry.
Please see screenshot.

In win32:

In ios:


#4

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


#5

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