My application is not compatible with ClearType. Because it
draws text on top of itself on an transparent background:
...
lf.lfQuality = NONANTIALIASED_QUALITY;
...
SetBkMode(hdcMemAND, TRANSPARENT);
SetBkMode(hdcMemXOR, TRANSPARENT);
DrawText(hdcMemAND, lpszText, ...);
DrawText(hdcMemXOR, lpszText, ...);
...
This code works fine on devices without ClearType.
With ClearType, it produces ugly colored edges.
I can't change the concept of the two masks.
So what can I do to solve this problem?
How can i disable ClearType for my font?
NONANTIALIASED_QUALITY doesn't work on all my devices.
Wolfgang
See also:
http://msdn.microsoft.com/library/en-us/gdi/fontext_0xgn.asp