From 24a651cb38e0c763616b5b9d2468ace5653d0b45 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 25 Feb 2016 15:14:06 +0800 Subject: [PATCH] Fix incorrect font handle in native --- jsb/jsb-label.js | 3 --- .../src/ExtensionsTest/AssetsManagerTest/AssetsManagerTest.js | 1 - 2 files changed, 4 deletions(-) diff --git a/jsb/jsb-label.js b/jsb/jsb-label.js index 3725ba5490..ead0be392e 100644 --- a/jsb/jsb-label.js +++ b/jsb/jsb-label.js @@ -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; diff --git a/test/visual-tests/src/ExtensionsTest/AssetsManagerTest/AssetsManagerTest.js b/test/visual-tests/src/ExtensionsTest/AssetsManagerTest/AssetsManagerTest.js index 707303441d..0bb3ce32db 100644 --- a/test/visual-tests/src/ExtensionsTest/AssetsManagerTest/AssetsManagerTest.js +++ b/test/visual-tests/src/ExtensionsTest/AssetsManagerTest/AssetsManagerTest.js @@ -39,7 +39,6 @@ var AssetsManagerTestLayer = BaseTestLayer.extend({ ctor : function (spritePath) { this._super(); this._spritePath = spritePath; - cc.loader.resPath = "../cpp-tests/Resources/"; }, getTitle : function() {