I enabled stroke.
label.enableStroke(cc.c3b(137,89,50),10,true);
I got a result trimmed a little on left side as attached screenshot.
It looks so ugly…
How can I fix it?
Hi Robert,
I will fix this problem soon.
Thank you for your feedback.
David
Thank you.
and I have another problem.
When I enable stroke to cc.Lable.TTF then the label is moved to wrong place.
so Always I have to recalculate position as stroke size.
var label = cc.LabelTTF.create(“000”, “Arial”,20);
label.enableStroke(cc.c3b(137,89,50),5,true);
label.setPosition(frameWidth*0.7,frameHeight/2); // label is move to (5,10) from where I expected
label.setPosition(frameWidth*0.7-5,frameHeight/2-10); // recalculate
I have created a issue to fix this problem.
http://www.cocos2d-x.org/issues/2901
I will fix it soon.