Low Quality text in System.Drawing

  • Thread starter Thread starter Eugenio
  • Start date Start date
E

Eugenio

Hi,

I'm working in a image generator, using C# with ASP.NET 2.0.

I'm generate some imagens in disk , in my machine everything works ,
but when i put the application in a server prodution , the text don't
have the same highquality.

Can occur some difference in System.Drawing.DrawString() ?

Eugênio Spolti

Sorry! but my english is very bad.
 
Hi Eugenio,

Don't worry, your english is fine ;-). Set TextRenderingHint property:

graphics.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

before you call DrawString()

Hope this helps
 
Back
Top