fixed logical error in Label::create.

This commit is contained in:
Dhilan007 2014-03-31 16:06:20 +08:00
parent 89eba4424f
commit d39a419eeb
1 changed files with 1 additions and 1 deletions

View File

@ -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))