mirror of https://github.com/axmolengine/axmol.git
Fix bug for TextReader #setFontName.
This commit is contained in:
parent
7c789e6a36
commit
d7199204bd
|
@ -51,7 +51,10 @@ namespace cocostudio
|
|||
bool fn = DICTOOL->checkObjectExist_json(options, "fontName");
|
||||
if (fn)
|
||||
{
|
||||
label->setFontName(DICTOOL->getStringValue_json(options, "fontName"));
|
||||
std::string tp_c = jsonPath;
|
||||
const char* cmfPath = DICTOOL->getStringValue_json(options, "fontName");
|
||||
const char* cmf_tp = tp_c.append(cmfPath).c_str();
|
||||
label->setFontName(cmf_tp);
|
||||
}
|
||||
bool aw = DICTOOL->checkObjectExist_json(options, "areaWidth");
|
||||
bool ah = DICTOOL->checkObjectExist_json(options, "areaHeight");
|
||||
|
|
Loading…
Reference in New Issue