I've discovered quite fast that it was a bad idea to try to bind the x and y attributes of a Text to its width and height to have it centered but that I could actually bind it's translateX attribute to achieve the same effect.

However I miss calculating the translateY value as I do not know how to get the pixel height of a piece of text for a given font in JavaFX yet (and doing it in Java2D would require a Graphics and many type conversions).

Hi
Just finished working on a similar problem. It's a button, the width is determined by the length of the text. To center it I took in account the the arcHeight and arcWidth. Here is the code, sorry for the lack of indentation, still can't figure out the code tags.