I feel like I've read a question similar to this but I can't find it, so please close if duplicate.
I am trying to draw text with Graphics::DrawString
with a monospace font (Consolas). However, when I draw the text, the letters are not evenly spaced. Here's what it looks like:
As you can see, the letters are clustered into groups of two and three. I read this article and I thought I had taken adequate steps to avoid it by using StringFormat::GenericTypographic
, but apparently not. I am also using TextRenderingHintClearTypeGridFit
because all the others look like junk (and there's no TextRenderingHintClearType
without the GridFit
part).
How can I draw text like all the other programs that draw text with a monospace font so that it looks right?