Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
225 stars 126 forks source link

CCLabelBMFont does not space properly for long text #445

Open totallyeviljake opened 9 years ago

totallyeviljake commented 9 years ago

The CCLabelBMFont class does not format long paragraphs of text properly. We seem to have to add spaces around the newline character to get it to not double space between paragraphs. doublespace

totallyeviljake commented 9 years ago

Changing the test case so that it uses the "Text" attribute to reset the label and setting LineBreakWithoutSpace to true seems to correct this behavior.