Browse - Programming Tips - How can I stop GDI+ from padding text when I draw it?

Date: 2015apr27
OS: Windows
Product: GDI+

Q.  How can I stop GDI+ from padding text when I draw it?

A.  Use StringFormat::GenericTypographic() like this:

StringFormat format = StringFormat::GenericTypographic(); graphics.DrawString( ...., ..., ..., ..., &format, ...);