Merge pull request #450 from cocos-creator/master

fix bmfont runtime issue
This commit is contained in:
Wang Nan
2016-03-09 14:44:58 +08:00
+2 -1
View File
@@ -125,7 +125,8 @@ jsbLabel.prototype.setFontFileOrFamily = function (fontHandle) {
this.setTTFConfig(this._ttfConfig);
} else if (extName === '.fnt') {
this._labelType = _ccsg.Label.Type.BMFont;
this.setBMFontFilePath(fontHandle, cc.v2(0, 0), this.getBMFontSize());
this.setBMFontFilePath(fontHandle);
this.setFontSize(this.getFontSize());
}
}
};