2

Non-Latin characters are not truncated properly so I modified the fragmentText() function to truncate on white space. file is in:

"C:\CocosCreator\resources\engine\cocos2d\core\label\CCTextUtils.js"

fragmentText: function (stringToken, allWidth, maxWidth, measureText) {
    return "function called";
}

The problem is that I see the changes in Cocos Creator editor and the text is truncated as I want, but I see no effect on the browser as the function is never called.

Why the function is not called when I build?

P.S: I use Cocos Creator 1.10 but also have 2.1.1 installed in C:\CocosCreator_2.1.1

Blendester
  • 1,583
  • 4
  • 19
  • 43

1 Answers1

0

I guess you forget to recompile the engine.

Check the step 1.3 on the website and try again.
1.3 Change and Build

JH Yang
  • 19
  • 4