BUG: GetGlyphOutline Returns Corrupt Glyphs with GGO_BITMAP

Last reviewed: November 19, 1996
Article ID: Q159427
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) for Windows NT, version 4.0, on the following platform: x86

SYMPTOMS

The function GetGlyphOutline() will occasionally return corrupted bitmaps of TrueType glyphs when called with the GGO_BITMAP format. This problem occurs only on Windows NT 4.0. The corrupted bitmaps usually resemble a "Venetian" blind where every other scan line appears to have been inserted from some other source.

WORKAROUND

There is no practical workaround for this bug involving the use of GetGlyphOutline. The problem can be avoided by using TextOut on a memory DC and using the BitBlt function to copy a bitmap similar to the one to be returned by GetGlyphOutline.

Additionally, the problem can be avoided by specifying a rotation matrix in the call to GetGlyphOutline that would result in a rotation of 1 degree or more. This approach, however, suffers from the loss of hinting to the resulting bitmap glyph.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

The problem can be reproduced by asking for glyph bitmaps for a series of characters over a range of Font heights. A specific case can be reproduced with a font height of -104 device units for the Wingdings font and the character code equivalent of the letter "i" in the ANSI character set.


KBCategory: kbgraphic kbbuglist
KBSubcategory: GdiFnt GdiTt
Additional reference words: 4.00 kbdsi



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 19, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.