Thank you very much!
But can you tell me why? I use setFontSize in iOS-js binding, the document say “The cocos2d-html5 API and the cocos2d-iphone + JS API, are exactly the same API. If you use the cocos2d JS API, your code will run both on Web Browses and Mobile Devices without changing a single line of code.”, but why I must use setFontSizeObj in web?
I get another issue :
CCLayer.js:495 TypeError: ‘undefined’ is not an object (evaluating ‘this._squareColors[0].r’)