[1/3] gdi32: Set ntmCellHeight from font header.

Dmitry Timoshkov dmitry at baikal.ru
Fri May 4 05:32:59 CDT 2012


---
 dlls/gdi32/freetype.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 3de31f6..b82db36 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -6635,7 +6635,7 @@ static BOOL get_outline_text_metrics(GdiFont *font)
         descent = pOS2->usWinDescent;
     }
 
-    font->ntmCellHeight = ascent + descent;
+    font->ntmCellHeight = ft_face->height;
     font->ntmAvgWidth = pOS2->xAvgCharWidth;
 
     if(font->yMax) {
-- 
1.7.9.4




More information about the wine-patches mailing list