[gs-cvs] gs/src

Igor Melichev igor at ghostscript.com
Tue Jul 19 12:31:21 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv1520/gs/src

Modified Files:
	gdevpdti.c 
Log Message:
Fix (ps2write) : Don't replace Encoding for standard fonts.

DETAILS :

This is the third partial fix for the bug 688169 "ps2write : text dissappears".

1. Regarding 093-01.ps :

Before a font is loaded from a font file object,
need to check whether there exists a standard font with same name and
save it for possible use in future from other font resource objects.

2. Regarding 336-01.ps :

The implementation of the operator ' was incomplete.

This patch causes ps2write progressions:

"093-01.ps" 
"336-01.ps" 
"adesso7.pdf" 
"ADOBE1-4.pdf" 
"brochurep1.pdf" 
"ca.pdf" 
"ccc.pdf" 
"Jahr2000.pdf" 
"js.pdf" 
"prfmm.pdf" 
"rf1025.pdf" 

EXPECTED DIFFERENCES :

None.


Index: gdevpdti.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdti.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- gdevpdti.c	28 Jun 2005 23:00:00 -0000	1.46
+++ gdevpdti.c	19 Jul 2005 19:31:19 -0000	1.47
@@ -111,7 +111,9 @@
 	pdfont->u.simple.FirstChar = 0;
     }
     c = ++(pdfont->u.simple.LastChar);
-    pdfont->Widths[c] = pdev->char_width.x;
+    pdfont->Widths[c] = psdf_round(pdev->char_width.x, 100, 10); /* See 
+			pdf_write_Widths about rounding. We need to provide 
+			a compatible data for Tj. */
     if (c > pbfs->max_embedded_code)
 	pbfs->max_embedded_code = c;
 



More information about the gs-cvs mailing list