Wine engine fix

Eric Pouech eric.pouech at wanadoo.fr
Fri Mar 22 13:58:15 CST 2002


usually fixed fonts are in MODERN family

A+
-------------- next part --------------
This patched is released under the X11 license.

Name: ft_facename
ChangeLog: changed fixed fonts family name
GenDate: 2002/03/22 19:52:20 UTC
ModifiedFiles: dlls/gdi/freetype.c
AddedFiles: 
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/gdi/freetype.c,v
retrieving revision 1.5
diff -u -u -r1.5 freetype.c
--- dlls/gdi/freetype.c	9 Mar 2002 23:33:03 -0000	1.5
+++ dlls/gdi/freetype.c	16 Mar 2002 12:46:11 -0000
@@ -1277,7 +1277,10 @@
         ptm->tmPitchAndFamily |= TMPF_VECTOR;
     if(FT_IS_SFNT(ft_face))
         ptm->tmPitchAndFamily |= TMPF_TRUETYPE;
-    ptm->tmPitchAndFamily |= FF_ROMAN;
+    if (ptm->tmPitchAndFamily & TMPF_FIXED_PITCH)
+        ptm->tmPitchAndFamily |= FF_ROMAN;
+    else
+        ptm->tmPitchAndFamily |= FF_MODERN;
 
     ptm->tmCharSet = font->charset;
     return TRUE;


More information about the wine-patches mailing list