wineps.drv: Make sure we call CreateFontIndirect with zero width, otherwise we'll get a scaled-width font.

This commit is contained in:
Huw Davies 2008-08-05 14:31:16 +01:00 committed by Alexandre Julliard
parent fc269433ce
commit d84ea74ec8
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
rc.top = t1->emsize;
DPtoLP(physDev->hdc, (POINT*)&rc, 2);
lf.lfHeight = -abs(rc.top - rc.bottom);
lf.lfWidth = 0;
lf.lfOrientation = lf.lfEscapement = 0;
unscaled_font = CreateFontIndirectW(&lf);
old_font = SelectObject(physDev->hdc, unscaled_font);