mirror of https://github.com/axmolengine/axmol.git
fixed logical error in Label::create.
This commit is contained in:
parent
89eba4424f
commit
d39a419eeb
|
@ -77,7 +77,7 @@ Label* Label::create(const std::string& text, const std::string& fontName, float
|
|||
{
|
||||
do
|
||||
{
|
||||
if (fontName.find('.') != fontName.npos)
|
||||
if (FileUtils::getInstance()->isFileExist(fontName))
|
||||
{
|
||||
TTFConfig ttfConfig(fontName.c_str(),fontSize,GlyphCollection::DYNAMIC);
|
||||
if (ret->setTTFConfig(ttfConfig))
|
||||
|
|
Loading…
Reference in New Issue