title: How to determine the size of a string given a font
body: <p>I have a small form that displays some progress information.
  <br>Very rarely I have to show a rather long message and I want to be able to resize this form when needed so that this message fits in the form.</p>
  
  <p>So how do I find out how wide string <code>S</code> will be rendered in font <code>F</code>? </p>