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



The information in this article 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 "Applies to" section.

REFERENCES

For more information about the ETO_GLYPH_INDEX flag for the ExtTextOut function, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:8/31/2006
Keywords:kbGDI kbtshoot kbBug KB921912 kbAudDeveloper