cc.Label 如何动态更改字体,使用fnt字体文件?
这样写没任何效果
cc.loader.loadRes(totalScore>=0?'Font/win_score':'Font/lose_score', function(error, res) {
if( error ) { cc.log( 'Error: ' + error ); return; }
this.Lbl_Score.font = res;
this.Lbl_Score.string = totalScore.toString();
}.bind(this));