gdiplus: Use font emSize to map to pixel size instead of using gdi32 font metrics.

This commit is contained in:
Dmitry Timoshkov 2012-05-21 14:40:53 +09:00 committed by Alexandre Julliard
parent 0f504a17ce
commit a4f79c347e

View File

@ -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;