BUG: TrueType Glyphs Wrong Color Rasterized to 8bpp DIBSection
Article ID: 180008
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows 95
This article was previously published under Q180008
SYMPTOMS
If you draw rotated or large TrueType glyphs to a memory DC that is backed
by an 8bpp DIBSection, you get text with glyphs that are not the color
specified with the SetTextColor function. Smaller, normally-oriented text
drawn to this 8bpp DIBSection memory DC has the color specified by the
SetTextColor function.
RESOLUTION
It may be possible to work around this problem using one of the following
methods:
- Draw to a memory DC using a DDB created with CreateCompatibleBitmap.
- Use a 24bpp DIBSection instead of an 8 bpp DIBSection.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Keywords: kbbug kbnofix KB180008