Projects > cpp > Issues > Bug #3678

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

Create Issue on Github

Corrupt looking characters and incorrect spacing between characters

Bug #3678 [Closed]
eq2k 2014-01-13 09:15 . Updated almost 3 years ago

Using the following code with cocos2d-x 3 beta, you will see the notdef character is merged with the a’s and ,’s. Additionally you will notice incorrect spacing before the letter f’s and y’s.

Label *pLabel = Label::createWithTTF(“Melody town, a town of sound, where beautiful music,”, “fonts/ScriptLite.otf”, 52);
pLabel~~>setAnchorPoint;
pLabel~~>setPosition(Point(50,50));
pLabel~~>setColor);
this~~>addChild(pLabel);

Ref: http://www.cocos2d-x.org/forums/6/topics/42174

problem.jpg (162 kB) eq2k, 2014-01-13 09:16

ScriptLite.otf (52.5 kB) eq2k, 2014-01-13 09:16

ricardo 2014-01-13 19:54
  • Target version set to 3.0-rc0
WenHai 2014-01-14 09:02
  • Assignee set to WenHai
WenHai 2014-01-17 09:40
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:2bd1de91c3a33f780ab51236991b8da3f026e8dd.

zhangxm 2014-01-26 01:53
  • Description updated (diff)
  • Target version changed from 3.0-rc0 to 3.0-beta2

Atom PDF

Status:Closed
Start date:2014-01-13
Priority:Low
Due date:
Assignee:WenHai
% Done:

100%

Category:ios
Target version:3.0-beta2

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