[1/3] dwrite: Use proper table field as stretch value
Nikolay Sivov
nsivov at codeweavers.com
Fri Oct 12 06:34:14 CDT 2012
Use proper table field as stretch value
-------------- next part --------------
>From 58e1f9120a1f6988d54b0d35ee90fce1c76e7101 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri, 12 Oct 2012 08:28:03 -0400
Subject: [PATCH 1/3] Use proper table field as stretch value
---
dlls/dwrite/font.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index c218c25..d91a424 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -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;
}
--
1.7.10.4
More information about the wine-patches
mailing list