fix UIText's fontSize

if set fontsize before setting font family, fontsize was wrong
This commit is contained in:
hyq 2014-05-19 11:38:45 +08:00
parent 0443018181
commit 11dcf1e1dd
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;
}