Merge pull request #380 from pandamicro/master

Fix incorrect font handle in native
This commit is contained in:
pandamicro
2016-02-25 15:16:42 +08:00
2 changed files with 0 additions and 4 deletions
-3
View File
@@ -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() {