From c8c4bf30fbb330f20c7305c2a3e469e7f767c276 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 10 Aug 2004 23:42:18 +0000 Subject: [PATCH] We don't currently support horizontal stretching of bitmap fonts, so we should ignore lfWidth. --- dlls/gdi/freetype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index 99135923ecf..fc532a54ac1 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -1821,7 +1821,8 @@ GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont) ret->strikeout = lf.lfStrikeOut ? 0xff : 0; TRACE("caching: gdiFont=%p hfont=%p\n", ret, hfont); - ret->aveWidth= lf.lfWidth; + + ret->aveWidth = FT_IS_SCALABLE(ret->ft_face) ? lf.lfWidth : 0; list_add_head(&gdi_font_list, &ret->entry); return ret; }