wineps.drv: Make sure we call CreateFontIndirect with zero width, otherwise we'll get a scaled-width font.
This commit is contained in:
parent
fc269433ce
commit
d84ea74ec8
|
@ -221,6 +221,7 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
|
||||||
rc.top = t1->emsize;
|
rc.top = t1->emsize;
|
||||||
DPtoLP(physDev->hdc, (POINT*)&rc, 2);
|
DPtoLP(physDev->hdc, (POINT*)&rc, 2);
|
||||||
lf.lfHeight = -abs(rc.top - rc.bottom);
|
lf.lfHeight = -abs(rc.top - rc.bottom);
|
||||||
|
lf.lfWidth = 0;
|
||||||
lf.lfOrientation = lf.lfEscapement = 0;
|
lf.lfOrientation = lf.lfEscapement = 0;
|
||||||
unscaled_font = CreateFontIndirectW(&lf);
|
unscaled_font = CreateFontIndirectW(&lf);
|
||||||
old_font = SelectObject(physDev->hdc, unscaled_font);
|
old_font = SelectObject(physDev->hdc, unscaled_font);
|
||||||
|
|
Loading…
Reference in New Issue