MeasureString

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

    #1

    MeasureString

    Why does this code

    Console.WriteLi ne(g.MeasureStr ing("a", new Font("Lucida Console",
    11f)).Width);
    Console.WriteLi ne(g.MeasureStr ing("aa", new Font("Lucida Console",
    11f)).Width);

    produce this output:

    13.9911
    23.09331

    Shouldn't the 2nd number be twice as large as the first?


Working...