Closed GoogleCodeExporter closed 9 years ago
So I looked to the code and the problem is that the TextSprite class can write
text just only created by the FontTexture class. TextTexture class keep Bitmap
object in itself (created by Font class) but the FontTexture class load Bitmap
object from a file. I can't put Bitmap object from TextTexture to FontTexture.
Original comment by lehovecj...@gmail.com
on 1 Jul 2010 at 11:03
Your right ...
if(!(texture instanceof FontTexture)) {
Should be
if(!(texture instanceof TextTexture)) {
Will be fixed for next release, or see trunk.
It's also worth noting FontTexture / TextTexture apply to different situations,
this will be explained in an example at some point. One is for a bitmap font,
which renders character-at-a-time to a texture. One is for TTF fonts, which are
rendered by Canvas onto a texture.
Thanks
Original comment by rtaylor205@gmail.com
on 2 Jul 2010 at 1:01
Original issue reported on code.google.com by
lehovecj...@gmail.com
on 30 Jun 2010 at 4:00