-
Notifications
You must be signed in to change notification settings - Fork 904
Fonts don't have crispness (looks very ghostly) and thickness varies between browsers #2459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@dingpinglv @pandamicro I'm having the same issue as well. The font doesn't display as crisp as compared to ex. when I render text using c++. |
@dingpinglv @pandamicro any fixes for this? We're looking to create a lot of games using this engine but the font quality would be a big deal breaker. We are also going to have the text localized in many languages and need many different fonts. |
@dingpinglv @pandamicro As pointed in the comment above, it's past about 2 months since the original post - has there been any updates to this? This is especially really important for games with a lot of narrative. |
Hi @hsdk123 and @sjayadevan , About font effect varies between browsers, I have no idea, because this issue is incompatibility between the browser vendors. My suggestion is that:
Best regards |
@dingpinglv Thanks for replying!
With a heavier font weight of Museo Sans I get the following: Chrome (Museo Sans 300): Safari (Museo Sans 500): As you can see none of them are crisp. It's also interesting that lighter weight font in Chrome is much thicker than heavier weight font in Safari |
This looks very much like a premultiplied alpha issue. From GIMP documentation:
Here is also a video demonstration of how not using premultiplied alpha causes these artifacts: https://www.youtube.com/watch?v=dU9AXzCabiM |
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:
Chrome:
FireFox:
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.
The text was updated successfully, but these errors were encountered: