[gs-cvs] gs/src

Igor Melichev igor at casper.ghostscript.com
Wed Jul 24 06:40:06 PDT 2002


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

Modified Files:
	gdevpdtf.c 
Log Message:
pdfwrite/pdxtext: fixing the decision about font embedding for the case
when a source document uses both standard and non-standard fonts
with same name.


Index: gdevpdtf.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdtf.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- gdevpdtf.c	24 Jul 2002 07:45:28 -0000	1.10
+++ gdevpdtf.c	24 Jul 2002 13:40:04 -0000	1.11
@@ -511,7 +511,10 @@
 	    return FONT_EMBED_STANDARD;
     }
     /* Check the Embed lists. */
-    if (!embed_list_includes(&pdev->params.NeverEmbed, chars, size)) {
+    if (!embed_list_includes(&pdev->params.NeverEmbed, chars, size) ||
+ 	(index >= 0 && !embed_as_standard(pdev, font, index, psame))
+ 	/* Ignore NeverEmbed for a non-standard font with a standard name */
+ 	) {
 	if (pdev->params.EmbedAllFonts || font_is_symbolic(font) ||
 	    embed_list_includes(&pdev->params.AlwaysEmbed, chars, size))
 	    return FONT_EMBED_YES;




More information about the gs-cvs mailing list