Bug #4565
By samuele3hu Posted 2014-03-26 10:19
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:

``` `
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:
