My current solution is to initialize CCLabelTTF with something like this:
CCLabelTTF *label = [CCLabelTTF labelWithString:@"Hello World" fontName:@"Marker Felt" fontSize:64 dimensions:size hAlignment:kCCTextAlignmentCenter vAlignment:kCCVerticalTextAlignmentCenter];
where size [CCDirector sharedDirector] .winSize for my example.
Any other suggestions are welcome.
source
share