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

Alexandre Julliard julliard at winehq.org
Mon Aug 18 10:46:29 CDT 2008


Module: wine
Branch: master
Commit: d84ea74ec887d7659ee6ba20a27cf1c65abcbd58
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d84ea74ec887d7659ee6ba20a27cf1c65abcbd58

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Aug  5 14:31:16 2008 +0100

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

---

 dlls/wineps.drv/type1.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wineps.drv/type1.c b/dlls/wineps.drv/type1.c
index 95534f8..9fe3b39 100644
--- a/dlls/wineps.drv/type1.c
+++ b/dlls/wineps.drv/type1.c
@@ -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);




More information about the wine-cvs mailing list