Dmitry Timoshkov : gdiplus: Use font emSize to map to pixel size instead of using gdi32 font metrics.
Alexandre Julliard
julliard at winehq.org
Mon May 21 15:31:08 CDT 2012
Module: wine
Branch: master
Commit: a4f79c347e1aa55516d0e8f3916f68b25483ed75
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a4f79c347e1aa55516d0e8f3916f68b25483ed75
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon May 21 14:40:53 2012 +0900
gdiplus: Use font emSize to map to pixel size instead of using gdi32 font metrics.
---
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 70ddef6..51733f4 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;
More information about the wine-cvs
mailing list