[Commit] fontconfig/src fcfreetype.c,1.26,1.27

Keith Packard commit@keithp.com
Thu, 24 Apr 2003 10:31:05 -0700


Committed by: keithp

Update of /local/src/CVS/fontconfig/src
In directory home.keithp.com:/tmp/cvs-serv4135

Modified Files:
	fcfreetype.c 
Log Message:
Debug output for unknown ps weight names.  ignore italic_angle for PS fonts as FreeType already checks that


Index: fcfreetype.c
===================================================================
RCS file: /local/src/CVS/fontconfig/src/fcfreetype.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- fcfreetype.c	20 Apr 2003 04:44:09 -0000	1.26
+++ fcfreetype.c	24 Apr 2003 17:31:03 -0000	1.27
@@ -767,12 +767,23 @@
 		    weight = ps_weights[w].value;
 		    break;
 		}
+	    if (FcDebug () & FC_DBG_SCANV)
+	    {
+		if (w == NUM_PS_WEIGHTS)
+		    printf ("\tunknown PS weight name %s\n", psfontinfo.weight);
+	    }
 	}
      
-        if (psfontinfo.italic_angle < 0) 
+#if 0
+	/* 
+	 * Don't bother with italic_angle; FreeType already extracts that
+	 * information for us and sticks it into style_flags
+	 */
+        if (psfontinfo.italic_angle)
             slant = FC_SLANT_ITALIC; 
-        else if (psfontinfo.italic_angle >= 0) 
+        else
             slant = FC_SLANT_ROMAN; 
+#endif
 
         if(!foundry)
             foundry = FcNoticeFoundry(psfontinfo.notice);