Fix for 687116, current HEAD gs fails to display this file on X11.
Alex Cherepanov <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Organization | Coscript Software |
| Message-ID | <[email protected]> |
Initialize cc->pair field for exterbal fonts, forgotten during the switch to new TrueType interpreter (NEW_TT_INTERPRETER). This patch follows the example set by gxchar.c:582 _______________________________________________ gs-code-review mailing list [email protected] http://www.ghostscript.com/mailman/listinfo/gs-code-review
gxccache.c.diff
(text/plain, 652 B)
Index: gs/src/gxccache.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gxccache.c,v
retrieving revision 1.27
diff -b -u -r1.27 gxccache.c
--- gs/src/gxccache.c 14 Oct 2003 12:53:51 -0000 1.27
+++ gs/src/gxccache.c 2 Nov 2003 17:26:12 -0000
@@ -232,6 +232,9 @@
cc->wxy.y = float2fixed(wxy.y);
cc->offset.x = int2fixed(-bbox.p.x);
cc->offset.y = int2fixed(-bbox.p.y);
+# if NEW_TT_INTERPRETER
+ cc->pair = pair;
+# endif
if_debug5('k', "[k]xfont %s char %d/0x%x#0x%lx=>0x%lx\n",
font->font_name.chars, enc_index, (int)chr,
(ulong) glyph, (ulong) xg);