Fonts cocos2d中的CCLabelTTF字体切断
我在cocos2d应用程序中添加了新字体,但字体已被切断,我如何解决此问题。请检查下面的图片和代码 代码:Fonts cocos2d中的CCLabelTTF字体切断,fonts,cocos2d-iphone,cclabelttf,Fonts,Cocos2d Iphone,Cclabelttf,我在cocos2d应用程序中添加了新字体,但字体已被切断,我如何解决此问题。请检查下面的图片和代码 代码: //CCLabelTTF *lbl_Home = [CCLabelTTF labelWithString:@"Go beneath the lake." fontName:FONT_NAME fontSize:65]; CCLabelTTF *lbl_Home = [CCLabelTTF labelWithString:@"Go beneath the lake." di
//CCLabelTTF *lbl_Home = [CCLabelTTF labelWithString:@"Go beneath the lake." fontName:FONT_NAME fontSize:65];
CCLabelTTF *lbl_Home = [CCLabelTTF labelWithString:@"Go beneath the lake." dimensions:CGSizeMake(1024, 100) hAlignment:NSTextAlignmentCenter fontName:FONT_NAME fontSize:65];
[lbl_Home setColor:ccc3(27, 6, 0)];
[lbl_Home setPosition:ccp(w/2,h/2)];
[self addChild:lbl_Home];
谁来帮我。
谢谢…尝试使用CGSizeMake(1024,0):不指定高度应该可以防止裁剪(我认为)。尝试过,没有结果…如果这是2.x版,请看我的答案。。。LabelTTF在该版本中有其“无价时刻”。