We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Label using distance field causes slight corruption and distortion to position and font
Label using distance field causes slight corruption and distortion to position and font
Bug #3758 [Closed]
- File QQ图片20140120140617.jpg added
I tested it on latest code.
It not have slight corruption.It have vertical alignment bug,i’m starting to fix the bug.
- Parent task set to #3820
- Description updated (diff)
- Status changed from New to Resolved
Label using distance field causes slight corruption and distortion to position and font,
using the following code you will see label 1 looks distorted but label 2 ok as per attached screenshot..
TTFConfig config1(“fonts/ScriptLite-Regular.ttf”, 80, GlyphCollection::NEHE, nullptr, true);
Label pLabel1 = Label::createWithTTF;
pLabel1~~>setAnchorPoint;
pLabel1~~>setPosition);
pLabel1~~>setColor);
this~~>addChild;
TTFConfig config2;
LabelpLabel2 = Label::createWithTTF(config2, “where meloody was”);
pLabel2~~>setAnchorPoint;
pLabel2~~>setPosition(Point(50,50));
pLabel2~~>setColor);
this~~>addChild(pLabel2);
P.S. Ive also attached font
ScriptLite-Regular.ttf (100.8 kB) eq2k, 2014-01-18 13:40
iOS Simulator Screen shot Jan 18, 2014, 1.33.22 PM.png (36.1 kB) eq2k, 2014-01-18 13:40
QQ图片20140120140617.jpg (68.8 kB) WenHai, 2014-01-21 10:23