dwrite: Use proper table field as stretch value.

This commit is contained in:
Nikolay Sivov 2012-10-12 08:28:03 -04:00 committed by Alexandre Julliard
parent 9a51a9926a
commit ab91abd755
1 changed files with 2 additions and 2 deletions

View File

@ -610,8 +610,8 @@ static DWRITE_FONT_STRETCH get_font_stretch(HDC hdc)
if (GetFontData(hdc, MS_OS2_TAG, 0, &tt_os2, size) != size) return stretch;
/* DWRITE_FONT_STRETCH enumeration values directly match font data values */
if (GET_BE_WORD(tt_os2.usWeightClass) <= DWRITE_FONT_STRETCH_ULTRA_EXPANDED)
stretch = GET_BE_WORD(tt_os2.usWeightClass);
if (GET_BE_WORD(tt_os2.usWidthClass) <= DWRITE_FONT_STRETCH_ULTRA_EXPANDED)
stretch = GET_BE_WORD(tt_os2.usWidthClass);
return stretch;
}