From 3ee39c07d037d2c03aedf7cabcfc90af3fee94ff Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Wed, 9 Mar 2016 11:52:27 +0800 Subject: [PATCH] fix jsb bmfont error --- jsb/jsb-label.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsb/jsb-label.js b/jsb/jsb-label.js index dc4bc61003..5dcb52702e 100644 --- a/jsb/jsb-label.js +++ b/jsb/jsb-label.js @@ -123,7 +123,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()); } } };