Skip to content

Commit

Permalink
label:fixed incorrect effect of outline.
Browse files Browse the repository at this point in the history
  • Loading branch information
WenhaiLin committed Mar 14, 2014
1 parent 4ce21f3 commit 6ef2162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/2d/CCLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ bool Label::setTTFConfig(const TTFConfig& ttfConfig)
return false;
}

setFontAtlas(newAtlas,ttfConfig.distanceFieldEnabled,true);

_fontConfig = ttfConfig;
if (_fontConfig.outlineSize > 0)
{
Expand All @@ -418,8 +420,6 @@ bool Label::setTTFConfig(const TTFConfig& ttfConfig)
this->setFontScale(1.0f * ttfConfig.fontSize / DistanceFieldFontSize);
}

setFontAtlas(newAtlas,ttfConfig.distanceFieldEnabled,true);

_currentLabelType = LabelType::TTF;

return true;
Expand Down

0 comments on commit 6ef2162

Please sign in to comment.