Merge pull request #6804 from hyqhyq3/v3

fix UIText's fontSize
This commit is contained in:
minggo 2014-05-20 11:57:29 +08:00
commit 6f2f2046c7
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ void Text::setFontName(const std::string& name)
{
TTFConfig config = _labelRenderer->getTTFConfig();
config.fontFilePath = name;
config.fontSize = _fontSize;
_labelRenderer->setTTFConfig(config);
_type = Type::TTF;
}