[gs-cvs] gs/src
Igor Melichev
igor at casper.ghostscript.com
Fri Aug 16 08:11:07 PDT 2002
Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv4843/gs/src
Modified Files:
gdevpdte.c
Log Message:
Fix (pdfwrite): Widths for different WMode's were mixed in same cache.
Discovered with CompareFiles/093-01.ps .
Index: gdevpdte.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdte.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gdevpdte.c 24 Jul 2002 18:58:28 -0000 1.9
+++ gdevpdte.c 16 Aug 2002 15:11:05 -0000 1.10
@@ -303,7 +303,9 @@
return_error(gs_error_rangecheck);
if (pwidths == 0)
pwidths = &widths;
- if (pdfont->Widths[ch] == 0) {
+ if (pdfont->Widths[ch] == 0 ||
+ (pdfont->copied_font != NULL &&
+ pdfont->copied_font->WMode != font->WMode)) {
/* Might be an unused char, or just not cached. */
gs_glyph glyph = pdfont->u.simple.Encoding[ch].glyph;
More information about the gs-cvs
mailing list