Narendrabrsoft / cocos2d-android-1

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

CCBitmapFontAtlas not support for Chinese character #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

in CCBitmapFontAtlas.java Line 191 
 bitmapFontArray[ characterDefinition.charID ] = characterDefinition; 
cause bitmapFontArray is an array with size 2048,
a chinese character like '试' with will be out of the boundary.

I think the bitmapFontArray  typed HashMap with character code as key value is 
a better choice,  that will support for the multi-languages case.

Original issue reported on code.google.com by NGl...@gmail.com on 5 Nov 2010 at 9:19

Attachments:

GoogleCodeExporter commented 8 years ago
change the CCBitmapFontAtlas.java a little
now the CCBitmapFontAtlas is support for chinese fnt files,
without array index out of boundary exception.

Original comment by NGl...@gmail.com on 24 Nov 2010 at 3:44

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I just create my first account in github with user name ngloom,
seems that I need to  learn git more deeply ( I'm just a freshman to git )
thanks for  the opportunity to join in :)

Original comment by NGl...@gmail.com on 25 Nov 2010 at 2:27