ButtonReader是用于解析CocosStudio中Button属性的
但是解析Button的Title字体属性可能存在找不到字体的情况,应该是没有将字体属性拼接到jsonPath上造成的
std::string fontName = DICTOOL->getStringValue_json(options, P_FontName,"微软雅黑");
// Fix Bug: font path error
std::string jsonPath = GUIReader::getInstance()->getFilePath();
std::string fontFilePath = jsonPath.append(fontName);
if (FileUtils::getInstance()->isFileExist(fontFilePath))
{
button->setTitleFontName(fontFilePath);
}
else{
button->setTitleFontName(fontName);
}
