Hi, Trying to figure something out with Font widths, Measure String,
and DrawString.
In the OnPaint event I have something like this.
e.Graphics.DrawString("Testing 123", this.Font, Brushes.Blue,0,0);
e.Graphics.DrawString("Testing ", this.Font, Brushes.Red, 0,
this.Font.Height * 2);
float lw = e.Graphics.MeasureString("Testing ", this.Font, 5000, new
StringFormat(StringFormatFlags.MeasureTrailingSpaces)).Width;
e.Graphics.DrawString("123", this.Font, Brushes.Green, lw,
this.Font.Height * 2);
Ok, Everythign works fine but the 123 on the second line doesnt start
where the 123 on the first line does, it starts to far to the right.
(NOT SURE IF THE FORMATTIGN WILL MESS UP) e.g.
Testing 123
Testing 123
Questions.
1) What's going on here?

2) I noticed that DrawString doesnt start drawing on the left most
pixel when setting float x to 0 in drawstring function, why is
this?
Thanks, For any help
Caeb