title: Creating columns of text with a variable width font
body: <p>I'm trying to create coloumns of text for a C# app that will be running on MSN Messenger. I'm having trouple getting everything to line up. </p>
  
  <p>Here's an example of the output that I want:</p>
  
  <pre><code>1)  Pizza Hut                                            123 Fake St.
  2)  Domino's Pizza                                       123 Fake St.
  3)  The Cheesecake Cafe                                  123 Fake St.
  4)  Capital Pizza &amp; Steakhouse                           123 Fake St.
  5)  Funky Pickle Pizza                                   123 Fake St.
  6)  Boston Pizza                                         123 Fake St.
  7)  Rose Bowl Rouge Lounge                               123 Fake St.
  8)  Royal Pizza                                          123 Fake St.
  9)  A Columbus Pizza &amp; Donair Inc                        123 Fake St.
  </code></pre>
  
  <p>But because it is a variable width font it is displaying like this:</p>
  
  <pre><code>1)  Pizza Hut                                        123 Fake St.
  2)  Domino's Pizza                                   123 Fake St.
  3)  The Cheesecake Cafe                                  123 Fake St.
  4)  Capital Pizza &amp; Steakhouse                               123 Fake St.
  5)  Funky Pickle Pizza                                   123 Fake St.
  6)  Boston Pizza                                     123 Fake St.
  7)  Rose Bowl Rouge Lounge                               123 Fake St.
  8)  Royal Pizza                                          123 Fake St.
  9)  A Columbus Pizza &amp; Donair Inc                    123 Fake St.
  </code></pre>
  
  <p>I have tried using the C# string.PadRight() function as well as creating my own function that add padding using spaces and tabs. Both work fine with fixed width fonts but break with variable width fonts.</p>
  
  <p>Is there any way to determine the width of a string in a given font?</p>
  
  <p>Or does anyone have any other suggestions?</p>