BUG: EMF to WMF Conversion Problems (177044)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • Microsoft Windows 95

This article was previously published under Q177044

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.

Modification Type:MajorLast Reviewed:2/24/2004
Keywords:kbbug KB177044