[gs-cvs] gs/src

Igor Melichev igor at casper.ghostscript.com
Sun Sep 15 23:28:11 PDT 2002


Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv24683/gs/src

Modified Files:
	gdevpdtt.c gdevpdte.c 
Log Message:
Fix (pdfwrite) : Text process fallback now restarts the text from the beginning
depending on font type.


Index: gdevpdtt.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdtt.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- gdevpdtt.c	16 Sep 2002 05:42:23 -0000	1.16
+++ gdevpdtt.c	16 Sep 2002 06:28:08 -0000	1.17
@@ -1469,7 +1469,7 @@
 	if (code < 0)
 	    return code;
 	penum->pte_default = pte_default;
-	/* Restart the text from the beginning. */
+	gs_text_enum_copy_dynamic(pte_default, pte, false);
     }
     /* The 'process' procedure might also have set pte_default itself. */
     if (penum->pte_default && !code)

Index: gdevpdte.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdte.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- gdevpdte.c	15 Sep 2002 12:23:08 -0000	1.14
+++ gdevpdte.c	16 Sep 2002 06:28:08 -0000	1.15
@@ -637,6 +637,7 @@
 	str.size = count;
 	code = pdf_encode_process_string(penum, &str, NULL, &text_state);
     }
-    pte->index += str.size;
+    if (code >= 0)
+	pte->index += str.size;
     return code;
 }




More information about the gs-cvs mailing list