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);

Leave a Reply

Your email address will not be published. Required fields are marked *