title: Libgdx: Is there an easy way to center text on each axis on a button?
body: <p>I have been trying to figure out a way to center text on a button, but can't find an easy, multi-purpose way to. I can do it, but it will only work for a certain string, not for any string. i would like to know if there is a way to center any string on a button. My button in this case is 185x50.</p>
  
  <p>I have been able to center this button on the screen, like so:</p>
  
  <pre><code>buttonX = WIDTH / 2 - (screen.getRegionWidth() / 2);
  buttonY = HEIGHT / 2 - (screen.getRegionHeight() / 2);
  </code></pre>
  
  <p>Any help would be much appreciated. :)</p>