Text smoothing in a single application
-
Is anyone aware of a way to turn on the windows text-smoothing for one application (not globally from the control panel) I thought there might be an attribute or something in the SetStyle method but I haven't found anything. thanks, JR
-
Is anyone aware of a way to turn on the windows text-smoothing for one application (not globally from the control panel) I thought there might be an attribute or something in the SetStyle method but I haven't found anything. thanks, JR
FYI, this OS setting changes the algorithm used to display fonts in the system. It is not an application-specific thing, but a change in the algorithm that affects the entire font subsystem. If you want text smoothing or ClearType support in your application (like Word, Adobe Acrobat, et. al. have), you'll have to add support for it yourself.
SetStyle
won't because that controls window styles and is analogousSetWindowLong
from the Platform SDK. When creating the underlying window handle, this corresponds toCreateParams
that is returned and will be used in the call toCreateWindowEx
.Microsoft MVP, Visual C# My Articles
-
FYI, this OS setting changes the algorithm used to display fonts in the system. It is not an application-specific thing, but a change in the algorithm that affects the entire font subsystem. If you want text smoothing or ClearType support in your application (like Word, Adobe Acrobat, et. al. have), you'll have to add support for it yourself.
SetStyle
won't because that controls window styles and is analogousSetWindowLong
from the Platform SDK. When creating the underlying window handle, this corresponds toCreateParams
that is returned and will be used in the call toCreateWindowEx
.Microsoft MVP, Visual C# My Articles
So then how would I go about adding it myself?
-
So then how would I go about adding it myself?
See the Platform SDK for information on GDI and GDI+. From what I've seen, the .NET base class library doesn't support such a featre. As far as ClearType goes, I'm not sure were you can find resources but the best place to start would probably be http://www.microsoft.com/typography/[^].
Microsoft MVP, Visual C# My Articles