Commit 0d6dcc1e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32: Perform correct glyph scaling even if font metrics haven't been cached yet.

parent 6f7457d8
...@@ -4353,8 +4353,12 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format, ...@@ -4353,8 +4353,12 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
} }
/* Scaling factor */ /* Scaling factor */
if (font->aveWidth && font->potm) if (font->aveWidth)
{ {
TEXTMETRICW tm;
WineEngGetTextMetrics(font, &tm);
widthRatio = (double)font->aveWidth; widthRatio = (double)font->aveWidth;
widthRatio /= (double)font->potm->otmTextMetrics.tmAveCharWidth; widthRatio /= (double)font->potm->otmTextMetrics.tmAveCharWidth;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment