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?
Comments
Post a Comment