AFM parsing bug
Ian Pilcher
pilcher at concentric.net
Tue Feb 27 13:15:26 CST 2001
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 at concentric.net>
Fix bug in AFM character width parsing
--
========================================================================
Ian Pilcher pilcher at concentric.net
========================================================================
-------------- next part --------------
--- ../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;
More information about the wine-patches
mailing list