update uiTextBMFont setFontFile

This commit is contained in:
Liam 2015-01-20 13:55:39 +08:00
parent d38b802780
commit 118b74e95c
1 changed files with 6 additions and 5 deletions

View File

@ -89,15 +89,16 @@ void TextBMFont::setFntFile(const std::string& fileName)
_labelBMFontRenderer->setBMFontFilePath(fileName);
_fntFileHasInit = true;
setString(_stringValue);
updateContentSizeWithTextureSize(_labelBMFontRenderer->getContentSize());
_labelBMFontRendererAdaptDirty = true;
}
void TextBMFont::setString(const std::string& value)
{
//if (value == _labelBMFontRenderer->getString())
//{
// return;
//}
if (value == _labelBMFontRenderer->getString())
{
return;
}
_stringValue = value;
if (!_fntFileHasInit)
{