Projects > cpp > Issues > Bug #3758

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Label using distance field causes slight corruption and distortion to position and font

Bug #3758 [Closed]
eq2k 2014-01-18 13:40 . Updated over 2 years ago

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;
Label
pLabel2 = 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

ricardo 2014-01-18 17:37
  • Priority changed from Low to High
  • Target version set to 3.0-rc0
WenHai 2014-01-20 01:48
  • Assignee set to WenHai
WenHai 2014-01-21 10:23

I tested it on latest code.
It not have slight corruption.It have vertical alignment bug,i’m starting to fix the bug.

walzer@cocos2d-x.org 2014-01-23 06:00
  • Parent task set to #3820
dumganhar 2014-02-21 11:59
  • Description updated (diff)
  • Status changed from New to Resolved
WenHai 2014-02-21 12:01
  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:0585b0ce8bc5f9bdf7e69a6ddb1751cf47b75251.

zhangxm 2014-03-14 03:23
  • Parent task deleted (#3820)

Atom PDF

Status:Closed
Start date:2014-01-18
Priority:High
Due date:
Assignee:WenHai
% Done:

100%

Category:all
Target version:3.0-rc0

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.