mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #450 from cocos-creator/master
fix bmfont runtime issue
This commit is contained in:
+2
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user