title: Drawing Text - need help understanding how to scale font size based on image ppi
body: <p><strong>ISSUE</strong><br>
  I am dealing with a system where images have been scanned in at different vertical and horizontal resolutions.  The resolutions range from 96dpi to 300dpi.</p>
  
  <p>My users need the ability to draw text onto these images.    Using GDI+ it is easy to draw text onto images.</p>
  
  <p><strong>QUESTION</strong><br>
  What I am having difficulty understanding, is how the user can draw text onto an image and the text drawn appears the same size, regardless of the images vertical and horizontal resolutions.</p>
  
  <p>What I am seeing now,  if I draw text using a 28pt arial font onto a 96ppi image the text will be smaller then if I draw text using a 28pt arial font onto a 300ppi image.</p>
  
  <p>How can I take the images resolution into consideration to scale the font size when drawing text onto images?</p>
  
  <p>I am drawing using the TextRenderer class.</p>
  
  <pre><code>TextRenderer.DrawText(graphics, this.txtComments.Text, font, startPoint, Color.Black);
  </code></pre>
  
  <p><strong>UPDATE #1</strong></p>
  
  <p>Here is the code i'm using to initialize the font</p>
  
  <pre><code>System.Drawing.Font font = new System.Drawing.Font("Comic Sans MS", 28, FontStyle.Bold,  GraphicsUnit.Point)
  </code></pre>
  
  <p>I have tried using GraphicsUnit.Pixel and GraphicsUnit.Point,  neither one make any difference for me.</p>
  
  <p><strong>UPDATE #2</strong></p>
  
  <p>I have tried using the Graphics.DrawString method and I get the same results.</p>
  
  <p>Thanks,</p>