CCLabelBMFont中的字体质量较差 [英] Poor font quality in CCLabelBMFont

查看:191
本文介绍了CCLabelBMFont中的字体质量较差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone 5S上的缩放屏幕截图:

Scaled screenshot on iPhone 5S:

CCLabelBMFont 位于顶部, CCLabelTTF 在底部。
两个字符串都使用 Helvetica Neue Light 17pt

CCLabelBMFont is on top and CCLabelTTF is at the bottom. Both strings use Helvetica Neue Light 17pt.

正如你所看到的,第一个字符串中的笔划,但字体图像中的所有符号都是透明背景上的白色。是否可以摆脱这种效应,使 CCLabelBMFont 看起来和 CCLabelTTF 一样好?

As you can see there is some kind of a stroke in the first string, but all symbols in font image are white on transparent background. Is it possible to get rid of this effect and make CCLabelBMFont look just as good as CCLabelTTF?

我使用 bmGlyph 和其他免费类似的Bitmap字体创建,结果总是相同的。

I used bmGlyph and other free analogs for Bitmap font creation, results were always the same.

推荐答案

多么安心!
原来是因为 Blend src 属性。
我将我的标签上的这个属性从SpriteBuilder'One'中的默认值改为'Dst Alpha',现在不可能看到 CCLabelTTF CCLabelBMFont

What a relief! Turned out it's because of Blend src property. I changed this property on my label from default in SpriteBuilder 'One' to 'Dst Alpha' and now it's impossible to see any difference between CCLabelTTF and CCLabelBMFont!

这篇关于CCLabelBMFont中的字体质量较差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆