BUG: EMF to WMF Conversion Problems

Last reviewed: November 21, 1997
Article ID: Q177044
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with: - Microsoft Windows 95

SYMPTOMS

In some situations, Windows does not properly handle fonts when converting from an enhanced metafile (EMF) to a normal Windows metafile (WMF). The result is that the converted WMF does not exactly match the original EMF. The fonts might have different sizes and different rotations.

RESOLUTION

To work around the size problem, record the metafile using only positive font heights. To work around the rotation direction problem, record the metafile using a mapping mode in which positive y is down.

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.

MORE INFORMATION

Font Height

The font height problem occurs because Windows converts all font heights to positive values during the conversion from EMF to WMF. For example, a font recorded with a height of -100 is converted to a font with a height of +100. As a result, a slightly different sized font appears because negative heights are interpreted as character heights while positive heights are interpreted as cell heights.

Font Rotation

The font rotation direction problem occurs because Windows does not properly handle rotated fonts when the metafile is in an inverted mapping mode. During EMF to WMF conversion, rotated fonts are rotated the wrong way when you use an inverted mapping mode. For example, converting an EMF that was recorded in MM_HIMETRIC and contains a rotated font, results in a WMF with the font rotated the other way.

Version           : WINDOWS:95
Platform          : Win95
Issue type        : kbbug


================================================================================


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 21, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.