[gs-commits] rev 11820 - trunk/gs/psi

chrisl at ghostscript.com chrisl at ghostscript.com
Mon Oct 18 14:11:44 UTC 2010


Author: chrisl
Date: 2010-10-18 14:11:44 +0000 (Mon, 18 Oct 2010)
New Revision: 11820

Modified:
   trunk/gs/psi/zchar42.c
Log:
In a CIDType2 font with a gsub table, when/if we substitute the glyph index
with an index for a vertical glyph, make sure we change the value of the
Truetype glyph index, and *not* the value of the Postscript CID.

Bug 691692

No cluster differences expected.



Modified: trunk/gs/psi/zchar42.c
===================================================================
--- trunk/gs/psi/zchar42.c	2010-10-16 15:52:53 UTC (rev 11819)
+++ trunk/gs/psi/zchar42.c	2010-10-18 14:11:44 UTC (rev 11820)
@@ -186,8 +186,7 @@
     if (pfont42->data.gsub_size) {
 	glyph_index = pfont42->data.substitute_glyph_index_vertical(pfont42, glyph_index,
 		gs_rootfont(igs)->WMode, penum->returned.current_glyph);
-	make_int(&substituted_cid, glyph_index);
-	cnref = &substituted_cid;
+	make_int(op, glyph_index);
     }
     code = zchar42_set_cache(i_ctx_p, pbfont, cnref, glyph_index, cont, &exec_cont);
     if (code >= 0 && exec_cont != 0)



More information about the gs-commits mailing list