DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

CCLabelTTF doesn't word wrap text for Mac OS #1074

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
lblDifficulty = [CCLabelTTF labelWithString: @"A really long line of text that 
is longer than the width of the label" dimensions:CGSizeMake(80, 60) 
alignment:UITextAlignmentCenter fontName: @"Impact" fontSize: 18];
lblDifficulty.position = ccp(160, 480);
[self addChild: lblDifficulty z: 100];

What is the expected output? What do you see instead?
I expect the text to wrap into 2 or more lines.  Instead, it renders only on a 
single line and the beginning and end of the text string is truncated.  i.e. 
The above code might render like this "of text that is longer than".

What cocos2d version are you using ?
0.99.5

What iOS / Mac SDK are you using ?
Mac OS 10.6

Debug or Release ?
Either

Which target device / target OS are you using ?
Mac OS 10.6

iOS only: Does this happens on device ? or on the simulator ? or on both ?
n/a

Mac only: x86 or i386 ?
Either

Please provide any additional information below.

Original issue reported on code.google.com by d...@freecloud.com on 30 Dec 2010 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 13 Jan 2011 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 23 Mar 2011 at 9:22

GoogleCodeExporter commented 9 years ago
rescheduled for v1.1

Original comment by ricardoq...@gmail.com on 13 Jul 2011 at 9:44

GoogleCodeExporter commented 9 years ago
fixed.
https://github.com/cocos2d/cocos2d-iphone/commit/e13e1e84d72e73f3386d5e0cf8a2fc7
ce8ac245d

Original comment by ricardoq...@gmail.com on 16 Dec 2011 at 6:18