We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Quality of font rendering
Quality of font rendering
Subpixeling issue ?
If so, it shouldn't be complicated to fix.
I think if we remove the floating part of the x,y,z in transform
and also in the position it should work.
By that I mean, fixing CCLabel.cpp # onDraw
.
@minggo, can we fix this for 3.0?
If not, what about v3.1 ?
I tried some stuff to ensure there is nothing drawn on sub pixels, but with no luck.
It is not easy to understand what is happening in the Label class.
The CCLabel code is quite complicated as it there is code for LabelTTF, LabelBMFont and Label all in one place. E.g. a Label does nervier call its onDraw or updateQuads methods.
Why is Label using the _textSprite to render? I thought Label is like a LabelBMFont, but with the difference that the texture is generated at runtime.
I think Label should be cleaned up by moving stuff in derived classes. It is very hard to understand if half of the code is never used depending on how the label was created.
I found the real source of the unsharp labels in my test program.
- You have to set the projection of the director to Director::Projection::_2D
- Do not set any design resolution or content scale factor.
Would be interesting to know why 2D projection is required. Thats ok for out current project, but also in 3D you want sharp labels
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8377
The quality of font rendering is not very good. Text is blurry and unsharp.
I added two screenshots. One does show the cocos2d-x V3 rendering of LabelTTF, LabelBMFont, and Label.
The other does show the rendering in the Mail app of osx.
The used font is Arial 14.
Screen Shot 2014-03-21 at 18.19.04.png (43.3 kB) Zombie, 2014-03-21 17:28