/CCLabelBMFontMultiline

Adds center-alignment, auto word-wrap, and dimension constraint support for multiline CCLabelBMFont

Primary LanguageObjective-CMIT LicenseMIT

A replacement for CCLabelBMFont. Useful if you want:
 - Center alignment
 - Auto word wrap
 - Specify dimensions

To use, download both CCLabelBMFontMultiline.h and CCLabelBMFontMultiline.m, open XCode, and drag the 2 files into the Classes Group.

In your code, do:

CCLabelBMFontMultiline *label = [CCLabelBMFontMultiline
	labelWithString:@"My Label"
	fntFile:@"my-font-file.fnt"
	width:200
	alignment:CenterAlignment];

The included demo project has an sample .fnt file made using GlyphDesigner, and examples on how to use CCLabelBMFontMultiline.

Discussion thread is here http://www.cocos2d-iphone.org/forum/topic/16242
Applied for inclusion in cocos2d-extensions here http://www.cocos2d-iphone.org/forum/topic/17106#post-119860