Projects > cpp > Issues > Bug #4565

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

Create Issue on Github

The Label will be less words using outline effect

Bug #4565 [Closed]
samuele3hu 2014-03-26 10:17 . Updated over 2 years ago

Modify the LabelOutlineAndGlowTest case then used BRLNSDB.TTF for test,the codes as follow:

    TTFConfig config( "fonts/BRLNSDB.TTF", 32 );
    auto lbl = Label::createWithTTF( config, "asdf", TextHAlignment::LEFT,size.width );
    lbl->setColor( Color3B( 255, 0, 0 ) );
    lbl->enableOutline( Color4B( 0, 0, 0, 255 ), 3 );
    lbl->setPosition( 400, 200 );
    lbl->setAnchorPoint( Point( 0.5, 0.5 ) );
    addChild( lbl );

    auto lbl2 = Label::createWithTTF( config, "asdf", TextHAlignment::LEFT,size.width );
    lbl2->setColor( Color3B( 255, 0, 0 ) );
    lbl2->setPosition( 400, 300 );
    lbl2->setAnchorPoint( Point( 0.5, 0.5 ) );
    addChild( lbl2 );

The reusult as follow:
bug.png

bug.png (17 kB) samuele3hu, 2014-03-26 10:17

BRLNSDB.TTF (94.6 kB) samuele3hu, 2014-03-26 10:17

samuele3hu 2014-03-26 10:19
  • Description updated (diff)
WenHai 2014-03-26 15:44
  • Target version changed from 3.0-rc2 to 3.0-rc1
WenHai 2014-03-27 07:14
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Atom PDF

Status:Closed
Start date:2014-03-26
Priority:Normal
Due date:
Assignee:WenHai
% Done:

100%

Category:all
Target version:3.0-rc1

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