Microsoft KB Archive/921912

= Characters that come after Far Eastern characters are shifted downward when you use the ScaleViewPortExtEx function to change the viewport for a DC =

Article ID: 921912

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft .NET Framework 2.0
 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0

-



SYMPTOMS
When you use the ScaleViewPortExtEx function to change the viewport for a device context (DC), characters that come after Far Eastern characters are shifted downward in certain situations.

Note This problem generally occurs when the DC mapping is set to the MM_ISOTROPIC mapping mode or to the MM_ANISOTROPIC mapping mode.



CAUSE
Graphics Device Interface (GDI) uses matrix and invert matrix to convert logical points to device points and to convert device points to logical points. When GDI converts a logical point to a device point and then converts the device point back to a logical point, the logical point is not the same in some cases. When the logical point is not the same, this problem occurs.



WORKAROUND
To work around this problem, use the ExtTextOut function to draw text and to enable the ETO_GLYPH_INDEX flag.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

