title: How to calculate font height in WPF?
body: <p>For a <code>FontFamily</code> how do I programatically retrieve/calculate the maximum height range for that font at a particular <code>FontSize</code>?</p>
  
  <p>I need a value to set the height of a textblock that will display the font at the specified <code>FontSize</code> - this has to be carried out programatically.</p>
  
  <p>I need a value that will take into consideration ascenders and descenders, etc.</p>
  
  <p><strong>Update</strong></p>
  
  <p>To clarify, I need the maximum height range for the entire <code>FontFamily</code>, not the height of some sample text in that font. I do not know what the text will be in advance.</p>