cocos2d/cocos2d-iphone — pull request #175 by rickms (2012-02-25 19:38:33+00:00)
Title: Support for unicode characters > 2048 in CCLabelBMFont

This is a follow up to http://www.cocos2d-iphone.org/forum/topic/29494

The current version of CCLabelBMFont, allocates a 2048 byte array of ccBMFontDef for glyphs, this has two issues, one it over allocates memory for 2048 fonts that may not be used, and it does not allow for support of unicode characters above 2048. I've modified CCLabelBMFont to use a hash to store it's fonts. I realize this may slow down performance a bit (hash table lookup) but it seemed the best way to support all unicode characters in a CCLabelBMFont

Thanks
Rick