I set size of the font, and after that I set the dimensions:
label.dimensions=CGSizeMake(winSize.width, 0);
so that I have "fix width" and auto height. I just wanted to make a justification for the text, because now it's just aligned left and doesn't look nice :/ I couldn't find any function in cocos2d to make it, I see only left, center and right.