mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue