I am trying to make a bitmapfont exactly in the middle of the screen however it starts the the whole text in the middle and doesn't center it. I can't guess and check because that won't work for all resolutions. I tried doing xCoor / 2 but like I said that would start the first letter in the center and won't center the full text
Is there a way to find the exact width of a string of text in libgdx?