Is it possible to tighten text in the Drawstring method?

M

Morten Wennevik [C# MVP]

Mark B said:
Is it possible to tighten text in the Drawstring method?

Hi Mark,

If by tighten you mean the space between the characters, then you may want
to try TextRenderer as Peter pointed out. The reason is that
Graphics.DrawString uses GDI+ wheras TextRenderer.DrawText uses GDI. The
difference is explained in this article. Your text may look better in GDI,
but it may look different when printed or in other resolutions..

[Why text appears different when drawn with GDIPlus versus GDI]
http://support.microsoft.com/default.aspx?scid=kb;en-us;307208
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top