How get a string width in Libgdx?
BitmapFont API < 1.5.6 To mesure the width of a String you use your Font and get the bounds of the String, you are going to draw. BitmapFont.getBounds(String str).width BitmapFont API You can get the height to for the right offset for drawing too. Just replace width with height. In addition for multiline texts use … Read more