creating a label this style :
CCLabelBMFont *label1_=
[CCLabelBMFont labelWithString:@"description: -" fntFile:@"comicsans.fnt" width:270 alignment:kCCTextAlignmentLeft];
and:
[label1_ setString:
@"someText\n and some newline \nand another new line too but this is last"];
this string have 2 escape characters for new line as seen.and when I set this Im losing last 2 words its shown something like this
someText
and some newline
and another new line too but this is la
so last two letters lost somehow. what could be a reason for this problem ? a cocos2d v2.1(stable) bug or Im in a horror film ?if so what should I do ?
\r does same effect as \n dont know why. may be you know.
if I dont use \r \n escape characters;CCLabelFont String shows correct string.without losing any amount of characters tailing.
so my temporal solution is removing escape characters from string fix problem. but this not fixes bug for cocos2d v2.1 (stable). I think CCLabel kind of classes cannot calculate doesnt work stable if there is \n escape characters.