fonts: don't horizontally stretch bitmap fonts

Huw D M Davies h.davies1 at physics.ox.ac.uk
Tue Aug 10 06:11:31 CDT 2004


        Huw Davies <huw at codeweavers.com>
        We don't currently support horizontal stretching of bitmap
        fonts, so we should ignore lfWidth
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/gdi/freetype.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/freetype.c,v
retrieving revision 1.68
diff -u -r1.68 freetype.c
--- dlls/gdi/freetype.c	9 Aug 2004 23:38:10 -0000	1.68
+++ dlls/gdi/freetype.c	10 Aug 2004 11:08:36 -0000
@@ -1821,7 +1821,8 @@
     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;
 }



More information about the wine-patches mailing list