israelCanul / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

TextSprite doesn't show in emulator #117

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
just the same bug of TextSprite without VBO, I see the previous bug's state is 
"Fixed", but it's still there.

What is the expected output?
see some text

What do you see instead?
nothing

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
emulator 1.5

Please provide any additional information below.

TextSprite scoreSprite = new TextSprite(232, 430, 54, 25);
Typeface face = Typeface.defaultFromStyle(Typeface.NORMAL);
Font font = new Font(face);
TextTexture text = font.createTexture("0")
scoreSprite.setTexture(text);
scoreSprite.setText("0");
add(scoreSprite);

Original issue reported on code.google.com by rayjun...@gmail.com on 13 Jul 2010 at 8:18

GoogleCodeExporter commented 8 years ago

Original comment by rtaylor205@gmail.com on 25 Jul 2010 at 9:30

GoogleCodeExporter commented 8 years ago
I get today's revision from svn and get error like in 94 about class cast, also 
running on emulator

Original comment by cih.exe...@gmail.com on 3 Aug 2010 at 9:49

GoogleCodeExporter commented 8 years ago
rtaylor205,
Could you please fix this with high prio ?

Because I'm really need this fix for Friday 
p.s. 
still have an exception
java.lang.ClassCastException: com.stickycoding.rokon.TextTexture
    at com.stickycoding.rokon.TextSprite.onDrawNormal(TextSprite.java:89)

Original comment by cih.exe...@gmail.com on 4 Aug 2010 at 9:19

GoogleCodeExporter commented 8 years ago
same error

Original comment by XIEJG...@gmail.com on 10 Sep 2010 at 3:31

GoogleCodeExporter commented 8 years ago
same error

Original comment by Eagle...@gmail.com on 11 Sep 2010 at 3:49

GoogleCodeExporter commented 8 years ago
solution:
Font font = new Font("fonts/angltrr.ttf");  
TextTexture textTexture = font.createTexture("This text should split into 
several lines, finger's crossed!", 600);  
Sprite text = new Sprite(0, 0, 5, textTexture.getHeight(5));  
text.setTexture(textTexture);  
myScene.add(1, text);  

Original comment by Eagle...@gmail.com on 11 Sep 2010 at 4:41

GoogleCodeExporter commented 8 years ago
nothing text show on my device use Font font = new 
Font("fonts/angltrr.ttf");....

Original comment by rayjun...@gmail.com on 14 Sep 2010 at 1:13

GoogleCodeExporter commented 8 years ago
For some solutions see: http://rokonandroid.com/community/topic?id=404

I think the best solution is to create a new version of FontTexture (see 
thread) which can be built dynamically, from a Font object.

http://rokonandroid.com/community/topic?id=404&p=1#p1938

Original comment by necrotic...@gmail.com on 17 Sep 2010 at 8:03

GoogleCodeExporter commented 8 years ago
same error 

Original comment by cl...@int-hub.com on 25 Apr 2012 at 7:17