From dad414339adb45d79cbb047c393fd0b5768f0334 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 1 May 2009 11:09:23 -0500 Subject: [PATCH] gdiplus: correct the lfHeight calculation in GdipCreateFontFromLogfontW --- dlls/gdiplus/font.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 68540e4..0b582a7 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -195,7 +195,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc, oldfont = SelectObject(hdc, hfont); GetTextMetricsW(hdc, &textmet); - (*font)->lfw.lfHeight = -textmet.tmHeight; + (*font)->lfw.lfHeight = -(textmet.tmHeight-textmet.tmInternalLeading); (*font)->lfw.lfWeight = textmet.tmWeight; (*font)->lfw.lfCharSet = textmet.tmCharSet; -- 1.5.4.3