mirror of https://github.com/axmolengine/axmol.git
Modify that parsing attribute "fontName" of TextReader
This commit is contained in:
parent
e99ea7a9fe
commit
2ed51e042d
|
@ -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);
|
||||
}
|
||||
label->setFontName(fontName);
|
||||
|
||||
bool aw = options.has_areawidth();
|
||||
bool ah = options.has_areaheight();
|
||||
|
|
Loading…
Reference in New Issue