[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    AFM parsing bug
From:       Ian Pilcher <pilcher () concentric ! net>
Date:       2001-02-27 19:15:26
[Download RAW message or body]

This patch fixes a small bug in PSDRV_AFMGetCharMetrics, although I
cannot figure out why it makes a bit of difference.  (It also gets rid
of spurious "No whitespace found" error messages.)

I have also changed the "Unknown AFM Weight" message to a warning.

Changelog:

    * dlls/wineps/afm.c
    Ian Pilcher <pilcher@concentric.net>
    Fix bug in AFM character width parsing

-- 
========================================================================
Ian Pilcher                                       pilcher@concentric.net
========================================================================
["wineps-afm.diff" (text/plain)]

--- ../wine-20010226cvs/dlls/wineps/afm.c	Thu Feb 15 15:23:50 2001
+++ dlls/wineps/afm.c	Wed Feb 28 01:06:58 2001
@@ -47,7 +47,7 @@
 	   ERR("Unexpected EOF\n");
 	   return;
 	}
-	cp = line + strlen(line);
+	cp = line + (strlen(line) - 1);
 	do {
 	    *cp = '\0';
 	    cp--;
@@ -205,7 +205,8 @@
 	    else if(!strncmp("Black", value, 5))
 	        afm->Weight = FW_BLACK;
 	    else {
-	        FIXME("%s: Unkown AFM Weight '%s'\n", file,value);
+		WARN("%s specifies unknown Weight '%s'; treating as Roman\n",
+		     file, value);
 	        afm->Weight = FW_NORMAL;
 	    }
 	    continue;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic