Microsoft KB Archive/241541

{|
 * width="100%"|

BUG: Printed Text Is Reflected in GM_ADVANCED Mode

 * }

Q241541

-

The information in this article applies to:


 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional

-

SYMPTOMS
On some printers, when you print text in an inverted mapping mode such as MM_HIMETRIC, and when GM_ADVANCED graphics mode is set, the text may appear vertically reflected about the top of the character cells. The same code, when run on a screen device context (DC), produces proper (nonreflected) output.

RESOLUTION
To work around this bug, use a noninverted mapping mode (one in which positive Y is down), or don't use GM_ADVANCED graphics mode.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION
The following code reproduces this problem:

   SetMapMode( hDC, MM_LOMETRIC); SetViewportOrgEx( hDC, 0, GetDeviceCaps( hDC, VERTSIZE ), NULL ); SetGraphicsMode( hDC, GM_ADVANCED ); TextOut( hDC, 10, 50, "Hello", 5 ); Additional query words: spooler print world transform SetGraphicsMode SetMapMode text font MM_LOENGLISH MM_HIENGLISH MM_LOMETRIC MM_HIMETRIC

Keywords : kbGDI kbSDKPlatform kbSDKWin32 kbWorldTrans kbGrpDSGDI

Issue type : kbbug

Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400xsearch kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Serv kbWinNTSsearch kbWinNTS400xsearch kbWinNTS400 kbwin2000ServSearch kbwin2000Search kbwin2000ProSearch kbwin2000Pro kbWinAdvServSearch