title: Delphi Printer.Canvas.TextWidth property
body: <p>I'm trying to set the column width for printing with my Delphi application. Whatever I type for the string doesn't make the width fewer. Actually I don't understand why the property returns a string, it should return width in pixels.</p>
  
  <p>My code is</p>
  
  <pre><code>Printer.Canvas.TextWidth('M');
  </code></pre>
  
  <p>Edit: i understood it doesn't return a string but what does 'M' mean? what i m trying to do is making a column narrower. my code is located at <a href="http://sudrap.org/paste/text/19688" rel="nofollow noreferrer">sudrap.org/paste/text/19688</a></p>
  
  <p>Edit: i m afraid i couldn t explain the problem clearly, i m sorry. <strong>i want it to print like this:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/cKrBP.png" alt="enter image description here"></p>
  
  <p><strong>not like this:</strong>
  <img src="https://i.stack.imgur.com/z9tHM.png" alt="enter image description here"></p>