java - Slick2d drawstring draws a box, no text -


i've seen references error before no solution.

where drawing text, there solid box of specified color being drawn.

the code this:

    truetypefont font;     font awtfont = new font("arial unicode ms", font.bold, 12); //name, style (plain, bold, or italic), size     font = new truetypefont(awtfont, true); //base font, anti-aliasing true/false      while (!display.iscloserequested() ) {         render();          font.drawstring(10, 10, "abc123", color.black); //x, y, string draw, color 

//enable these:  glenable(gl_blend); glblendfunc(gl_src_alpha, gl_one_minus_src_alpha);   //render this:  glpushmatrix();  bodyposition = body.getposition().mul(30); gltranslatef(position.x, position.y, 0); gl11.gldisable(gl11.gl_texture_2d); glpopmatrix(); 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -