mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
gdiplus: Use font emSize to map to pixel size instead of using gdi32 font metrics.
This commit is contained in:
parent
0f504a17ce
commit
a4f79c347e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user