title: Determining width and height of a JavaFX Font
body: <p>I have a <a href="https://docs.oracle.com/javafx/2/api/javafx/scene/text/Font.html" rel="nofollow noreferrer">Font</a> object and I need both the width and height of the font. I know that the <a href="https://docs.oracle.com/javafx/2/api/javafx/scene/text/Font.html#getSize()" rel="nofollow noreferrer">getSize()</a> returns the height of the font as the <a href="http://www.computerhope.com/jargon/f/font-size.htm" rel="nofollow noreferrer">point-size of a font is generally the height</a>, but I'm at a loss when it comes to determining the width of the font.</p>
  
  <p>Alternatively, being able to determine the width of each specific character supported by the Font would also be an acceptable solution.</p>
  
  <p>My best guess is that the width is specified when using the <a href="https://docs.oracle.com/javafx/2/api/javafx/scene/text/Font.html#loadFont(java.io.InputStream,%20double)" rel="nofollow noreferrer">loadFont</a> method, but the documentation does not specify whether the size parameter represents the width or the height of the font.</p>
  
  <p>All fonts being used are mono-space fonts such as <em>DejaVu Sans Mono</em>, <em>GNU FreeMono</em>, and <em>Lucida Sans Unicode</em>.</p>