From a4f79c347e1aa55516d0e8f3916f68b25483ed75 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 21 May 2012 14:40:53 +0900 Subject: [PATCH] gdiplus: Use font emSize to map to pixel size instead of using gdi32 font metrics. --- dlls/gdiplus/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 70ddef6768..51733f4360 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -483,7 +483,7 @@ GpStatus WINGDIPAPI GdipGetLogFontA(GpFont *font, GpGraphics *graphics, void get_log_fontW(const GpFont *font, GpGraphics *graphics, LOGFONTW *lf) { /* FIXME: use graphics */ - lf->lfHeight = -font->otm.otmTextMetrics.tmAscent; + lf->lfHeight = -em_size_to_pixel(font->emSize, font->unit, font->family->dpi); lf->lfWidth = 0; lf->lfEscapement = 0; lf->lfOrientation = 0; -- 2.32.0.93.g670b81a890