New issue
 Projects > js > Issues > Bug #4111

A bug of fnt parser

Bug #4111 [Closed]
SmallAiTT 2014-02-21 07:32 . Updated over 2 years ago

There is a bug in cc.BMFontConfiguration:

        if (cc.renderContextType === cc.WEBGL) {
            var scaleW = parseInt(/scaleW=(\d+)/gi.exec(line)[1]);
            if(scaleW > cc.Configuration.getInstance().getMaxTextureSize())
                cc.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported");

            var scaleH = parseInt(/scaleH=(\d+)/gi.exec(line)[1]);
            if(scaleH > cc.Configuration.getInstance().getMaxTextureSize())
                cc.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported");
        }
linshun 2014-02-23 02:29
  • Target version changed from v2.2.2 to v3.0 alpha
SmallAiTT 2014-03-06 05:58
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-02-21
Priority:Normal
Due date:
Assignee:SmallAiTT
% Done:

0%

Category:-
Target version:v3.0 alpha

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.