mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fix jsb bmfont error
This commit is contained in:
+2
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user