How can I get the dimensions of a drawn string without padding?
- by Dan Herbert
I'm trying to create an image with some text on it and I want the image's size to match the size of the rendered text.
When I use System.Windows.Forms.TextRenderer.MeasureText(...) to measure the text, I get dimensions that include font padding. When the text is rendered, it seems to use the same padding.
Is there any way to determine the size…