drawing text in PlayN doesn't appear -


i'm trying draw rectangle text on it, see rectangle, there no text. doing wrong? part of code drawing:

canvasimage image = playn.graphics().createimage(100, 50); canvas canvas = image.canvas();  canvas.setfillcolor(color); canvas.fillrect(0, 0, 100, 50);  canvas.setfillcolor(textcolor); canvas.setstrokecolor(textcolor); canvas.drawtext("test", 0, 0);  layer.surface().drawimage(image, 0, 0); 

thanks

btw, i'm running html version.

the problem text drawen y coordinate , setting y 0 text wasn't shown.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -