title: Convert the Font size in inch
body: <p>I need to convert between <code>Drawing.Font.Size</code> (float, ?) and WPF <code>FontSize</code> (double, WPF pixels).</p>
  
  <p>Finally, I decided to store in the database the fontSize in inch...</p>
  
  <p>How can I convert the GDI FontSize to inch and the WPF FontSize to inch?</p>
  
  <pre><code>sizeInInch = wpfFontSize / 96
  sizeInInch = gdiFontSize / ?
  </code></pre>
  
  <p>Can I use something DPI independent? Maybe <code>System.Windows.FontSizeConverter</code>?</p>
  
  <p>I need to convert to something, that will allow me to switch multiple time between WPF and GDI without changing the "real value". </p>
  
  <p>Each division and following multiplication will accumulate errors...</p>
  
  <p>FontSizeConverter does a ConvertTo, but I don't understand to use it:
  say</p>
  
  <pre><code>myUniversalFontSize = (double)(myFontSizeConverter.ConvertFrom(
      gdiFont.SizeInPoints.ToString() + "pt"))
  </code></pre>
  
  <p>will transform my gdiFont size in ...? WPF Pixels?</p>
  
  <p>How now should I convert back that value to GDI?</p>
  
  <pre><code>gdiFont.SizeInPoints = myUniversalFontSize / 96 * 72???
  </code></pre>
  
  <p>Can I use in the second example the <code>myFontSizeConverter</code> too?</p>