Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 177044 - Last Review: November 21, 2006 - Revision: 3.1
BUG: EMF to WMF Conversion Problems
This article was previously published under Q177044
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.
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.
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.
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.
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
Retired KB Content DisclaimerThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please