fonts - LIBGDX Bitmapfont does not "wrap" to next line -


i have been trying draw text using bitmapfont.however, text not wrap next line.here render method:

    gdx.gl.glclearcolor(1f, 1f, 1f, 1);     gdx.gl.glclear(gl20.gl_color_buffer_bit);     statetime+=delta;          batch.setprojectionmatrix(camera.combined);     batch.begin();     infofont.draw(batch, "really trying hard text wrapped remaining gets printed onto next line,however doesnt happen", 100, 300, 600, align.center,             true);     batch.end(); 

this results in "garbled" text.if last parameter made "false" text gets printed in straight line. wrong? font has been generated using glyphite.could problem or else?

enter image description here


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -