mirror of https://github.com/axmolengine/axmol.git
commit
6f2f2046c7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue