Strange string formatting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Rifkind

    #1

    Strange string formatting

    I've seen some strange string formatting behavior on several XP and 2000
    machines. I can get the same results with Graphics.DrawSt ring, but the
    easiest way to see it is to put a label on a VB or C# form, leave the
    label's font setting at the default, set AutoSize to true, and set the
    text property to a long string of narrow characters, like:

    lllllllllllllll lllllllllllllll llllllllll

    The first couple dozen or so 'l's look okay, but the rest have extra
    space between them, and the results from MeasureString (as seen in the
    width of the label frame) are too large. Using VS7.1 and .NET 1.1.
Working...