cc-fit-label is Custom Component for CocosCreator.
It's changes the x-scale depending on the length of the string.
-
add FitLabel.js to your Assets editor.
-
You can add a component to any node. There's an Add Component button at the very bottom of Properties. Click the button and choose Add Custom Component -> FitLabel to add a new script component.