title: Java get font size given height
body: <p>Is there a (neat) way, instead of getting the height of a particular font size, getting a font size of a particular font (SansSerif in this case) that produces a given height?</p>
  
  <p>I could of course loop through font sizes or use some form of binary chop, but if possible I would like to use something a bit cleaner and less resource intensive. The best way I've found is using something like <a href="http://www.java2s.com/Code/Java/Swing-JFC/GetMaxFittingFontSize.htm" rel="nofollow">this</a>.</p>