Modify that parsing attribute "fontName" of TextReader

This commit is contained in:
pipu 2014-10-30 18:00:03 +08:00
parent e99ea7a9fe
commit 2ed51e042d
1 changed files with 1 additions and 9 deletions

View File

@ -163,15 +163,7 @@ namespace cocostudio
label->setFontSize(fontSize);
std::string fontName = options.has_fontname() ? options.fontname() : "微软雅黑";
std::string fontFilePath = protocolBuffersPath.append(fontName);
if (FileUtils::getInstance()->isFileExist(fontFilePath))
{
label->setFontName(fontFilePath);
}
else{
label->setFontName(fontName);
}
bool aw = options.has_areawidth();
bool ah = options.has_areaheight();