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 -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -