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

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
 
H

Herfried K. Wagner [MVP]

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.
 
K

Keith

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?
 
J

Jeff Gaines

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.
 
H

Herfried K. Wagner [MVP]

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>
 

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