English 中文(简体)
Cocos2D字体渲染问题
原标题:Cocos2D font rendering issue

观察到一个严重的Cocos2D字体相关问题

请看这张图片:

在上图中,字体渲染不正确。我用的是CCLabelBMFont。我该如何解决这个问题?

密码

CCLabelBMFont *userName = [CCLabelBMFont labelWithString:PlayerNameStr  fntFile:@"MyFont.fnt"];
最佳回答

你需要在字形之间留出更多的空间。您可以在位图字体编辑器中更改此设置,Glyph Designer和Hiero都有。在Glyph Designer中,该设置称为间距,设置为2。我猜你使用的是Hiero,默认情况下,它的间距设置为0。

问题回答

暂无回答




相关问题
Cocos2d - Shooting Game Problem

everyone, I made a shooting game just like 1942(classic shooting game),but here s the question, FPS drops to 5~6 when the fighter shoot out a straight line of bullet,about 7~8 bullets in the screen,...

AtlasSpriteManager animation

I am using AtlasSpriteManager and AltasSprite to create frame by fram animation with 1 one file. I wanna write something that at first show a simple picture, without any animation and for example when ...

background moves together with image

I have 4 images and a background. I already about to animate the image to move accordingly. But the back ground is not moving. I am not sure how to make the background move accordingly to the movement ...

NSMutable array invalid after objectAtIndex

@implementation Level @synthesize doors, rooms; - (id) init { self = [super init]; if (self != nil) { rooms = [[NSMutableArray alloc] init]; doors = [[NSMutableArray alloc] init]; ...

How to subclass AtlasSpriteManager in Cocos2d?

I need to create some compound sprites that will all move and rotate together. Since it s possible to change the position and rotation of an AtlasSpriteManager I ve been trying to subclass so I can ...

热门标签