gdi32: Don't use pOS2->usWeightClass, some fonts don't set it correctly.

This commit is contained in:
Dmitry Timoshkov 2008-09-10 20:58:13 +09:00 committed by Alexandre Julliard
parent 32b6a1a08c
commit 067cbc57f3
1 changed files with 1 additions and 1 deletions

View File

@ -5165,7 +5165,7 @@ UINT WineEngGetOutlineTextMetrics(GdiFont *font, UINT cbSize,
TM.tmAveCharWidth = 1;
}
TM.tmMaxCharWidth = (pFT_MulFix(ft_face->bbox.xMax - ft_face->bbox.xMin, x_scale) + 32) >> 6;
TM.tmWeight = font->fake_bold ? FW_BOLD : pOS2->usWeightClass;
TM.tmWeight = (font->fake_bold || (ft_face->style_flags & FT_STYLE_FLAG_BOLD)) ? FW_BOLD : FW_REGULAR;
TM.tmOverhang = 0;
TM.tmDigitizedAspectX = 300;
TM.tmDigitizedAspectY = 300;