mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 19:12:40 +08:00
Merge pull request #380 from pandamicro/master
Fix incorrect font handle in native
This commit is contained in:
@@ -116,9 +116,6 @@ jsbLabel.prototype.setFontFileOrFamily = function (fontHandle) {
|
||||
this._isSystemFontUsed = true;
|
||||
}
|
||||
else {
|
||||
//add resource path
|
||||
fontHandle = cc.path.join(cc.loader.resPath, fontHandle);
|
||||
|
||||
if (extName === '.ttf') {
|
||||
this._labelType = _ccsg.Label.Type.TTF;
|
||||
this._ttfConfig.fontFilePath = fontHandle;
|
||||
|
||||
@@ -39,7 +39,6 @@ var AssetsManagerTestLayer = BaseTestLayer.extend({
|
||||
ctor : function (spritePath) {
|
||||
this._super();
|
||||
this._spritePath = spritePath;
|
||||
cc.loader.resPath = "../cpp-tests/Resources/";
|
||||
},
|
||||
|
||||
getTitle : function() {
|
||||
|
||||
Reference in New Issue
Block a user