Commit ab91abd7 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Use proper table field as stretch value.

parent 9a51a992
......@@ -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;
}
......
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