Narendrabrsoft / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCBitmapFontAtlas FNT FIle Parsing Error #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The kerning information in the fnt files generated by 
http://www.angelcode.com/products/bmfont/ contains trailing whitespace which is 
not handled in CCBitmapFontAtlas.

Quick fix for this is to change line 428 in CCBitmapFontAtlas from int amount = 
Integer.valueOf(propertyValue); to int amount = 
Integer.valueOf(propertyValue.trim());

Original issue reported on code.google.com by ghemp...@gmail.com on 20 Dec 2010 at 8:27

GoogleCodeExporter commented 8 years ago
I found this bug long ago, but forget to push. Thanks.

Original comment by opengen...@gmail.com on 20 Dec 2010 at 11:34

GoogleCodeExporter commented 8 years ago
Pushed to master.

Original comment by opengen...@gmail.com on 20 Dec 2010 at 11:34

GoogleCodeExporter commented 8 years ago

Original comment by opengen...@gmail.com on 29 Dec 2010 at 9:15