cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.21k stars 7.06k forks source link

Fonts don't have crispness (looks very ghostly) and thickness varies between browsers #9145

Closed ghost closed 9 years ago

ghost commented 9 years ago

I've been trying to fix the quality of fonts for a while now. I'm using CCLabelTTF and the font thickness seems to vary a lot between browsers as well. Here's an example of MuseoSans_100.ttf: Safari:

screen shot 2014-11-17 at 7 50 48 pm

Chrome:

screen shot 2014-11-17 at 7 48 40 pm

FireFox:

screen shot 2014-11-17 at 7 51 13 pm

I tried loading other fonts as well and the light weight ones look very ghostly.I looked at a lot of articles online for this and none of them seem to fix this issue. The version of Cocos I'm using is 2.2.2 but this seems to happen for V3.1 as well. I tried looking at a few other cocos2d html5 games out there and they all seem to have a very similar font quality.

minggo commented 9 years ago

I think you should create this issue here: https://github.com/cocos2d/cocos2d-js.