Re: Fix for 687116, current HEAD gs fails to display this file on X11.

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Alex,

Good change, thank you. I was not able to debug X11. Please commit.

Igor.

----- Original Message ----- 
From: "Alex Cherepanov" <[email protected]>
To: "gs-code-review" <[email protected]>
Sent: Sunday, November 02, 2003 8:57 PM
Subject: [gs-code-review] Fix for 687116,current HEAD gs fails to display
this file on X11.


> 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
>


----------------------------------------------------------------------------
----


> 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);
>


----------------------------------------------------------------------------
----


> _______________________________________________
> gs-code-review mailing list
> [email protected]
> http://www.ghostscript.com/mailman/listinfo/gs-code-review
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.