Exact text start for DrawString with multiple font sizes.

Using DrawString texts have a horizontal spacing depending on their font size. In case of a list using multiple font sizes this looks strange. To start exactly at the same space use the following as a StringFormat argument for DrawString

StringFormat sFormat = new StringFormat(StringFormat.GenericTypographic);
Lastest update in April 2012, inital post in April 2012

Write a comment

I appreciate comments, suggestions, compliments etc. Unfortunately I have no time to reply to them. Useful input will be used for sure!