title: JavaFX: Get line height of TextArea
body: <p>I have a window/stage and a TextArea which will be resized dependent on the length of the text inside the TextArea (the text is wrapped). This means, the window is smaller, the less the text is inside the TextArea. The width of the TextArea is given. To calculate the height of the TextArea I use the length of the text, the given width of the TextArea and the line height. For example:</p>
  
  <blockquote>
    <p>double height=textwidth/agreement.getWidth()*18;</p>
  </blockquote>
  
  <p>In this case the line-height is defined by a static value. But the line height have to be variable dependent on the definitions in the css-file, because the line height changes if the definition of the font size changes. Consequently I need to determine the line height of the TextArea to use it instead of using a static value. So, how can I get the line height of a TextArea? </p>