Is it possible to set a TextRenderingHint for an entire appplication?

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

Hello,

I would like to be able to have my app use Clear Type (or at least
antialiased) text rendering. Is there a way to enable this for an entire
application? I don't see any properties that allow for setting a
TextRenderingHint on an individual control (Label for example), but since
this is supported by GDI+ I don't see why Windows.Forms in general wouldn't
support it.

I could derive my own controls of course and override their Paint behaviors,
but that seems like a lot of bother for something the standard controls
should support. Is there a way to do this?

Keith
 
Keith said:
I would like to be able to have my app use Clear Type (or at least
antialiased) text rendering. Is there a way to enable this for an entire
application? I don't see any properties that allow for setting a
TextRenderingHint on an individual control (Label for example), but since
this is supported by GDI+ I don't see why Windows.Forms in general
wouldn't support it.

ClearType can be enabled in Windows' display properties for the whole
system. Even .NET-based Windows Forms applications will use it.
 
Thanks for the reply. Is there a way to force Clear Type or antialiased
text rendering for an application even if the system setting is set to
Standard?
 
Thanks for the reply. Is there a way to force Clear Type or antialiased
text rendering for an application even if the system setting is set to
Standard?

Very much a personal preference but I would urge you not to. Clear Type
thickens up fonts and makes them very much harder to read for me, I would
not use any software that forced that choice on me.
 
Jeff Gaines said:
Very much a personal preference but I would urge you not to. Clear Type
thickens up fonts and makes them very much harder to read for me, I would
not use any software that forced that choice on me.

I agree with you on the point that I would not make it a setting on
per-application scope except in very special cases. However, I have always
ClearType enabled, even on CRT monitors. Note that ClearType can be
configured to look good on most systems:

<URL:http://www.microsoft.com/typography/cleartype/tuner/Step1.aspx>
 
Back
Top