[gs-cvs] rev 8633 - trunk/gs/src
ken at ghostscript.com
ken at ghostscript.com
Thu Apr 10 00:38:47 PDT 2008
Author: ken
Date: 2008-04-10 00:38:46 -0700 (Thu, 10 Apr 2008)
New Revision: 8633
Modified:
trunk/gs/src/zchar42.c
Log:
Fix (PDF interpreter): Improve omission of .notdef glyphs.
Details:
Bug #689757 "Extra square characters rendering PDF file".
Improvement to change 8217, makes the test for .notdef more
specific at Igor's suggestion.
Now matches exactly the string ".notdef" or strings beginning
".notdef~GS~" in order to include any .notdef modified by the
PDF interpreter when it appears multiple times in an Encoding.
EXPECTED DIFFERENCES:
None.
Modified: trunk/gs/src/zchar42.c
===================================================================
--- trunk/gs/src/zchar42.c 2008-04-10 05:43:43 UTC (rev 8632)
+++ trunk/gs/src/zchar42.c 2008-04-10 07:38:46 UTC (rev 8633)
@@ -233,7 +233,8 @@
name_string_ref(imemory, op - 1, &gref);
- if (gref.tas.rsize >= 7 && strncmp(gref.value.const_bytes, ".notdef", 7) == 0) {
+ if ((gref.tas.rsize == 7 && strncmp(gref.value.const_bytes, ".notdef", 7) == 0) ||
+ (gref.tas.rsize > 9 && strncmp(gref.value.const_bytes, ".notdef~GS", 10) == 0)) {
pop((psbpt == 0 ? 4 : 6));
return (*cont)(igs);
}
More information about the gs-cvs
mailing list