groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] pic: "shaded" problem


From: Gaius Mulley
Subject: Re: [Groff] pic: "shaded" problem
Date: 17 Sep 2005 11:55:40 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Keith MARSHALL <address@hidden> writes:

> Ole Schoening wrote:
> > .PS
> > .fam H
> > boxrad=0.15
> > box shaded "green" width 1.5  "test test" ;
> > .PE
> >
> > produces no shaded green box (with round corners) but a "normal" one
> > without special colours. If I omit the "boxrad" command, then the
> > box will be shaded correctly. Typing "box rad 0.15 shaded ..."
> > delivers the unwanted result as well. I got these results with groff
> > 18.1 under cygwin as well as with gr0ff 19.2 for windows. Does
> > anybody have a solution for this problem, how to get round corners
> > together with colours?
> 
> For me, also with groff-1.19.2 on MS-Windows, this gives rounded
> corners, but no shading; is this what you meant?
> 
> Looks like you've discovered a bug in pic's shading code; it doesn't
> seem to work for round cornered boxes, at least on the Win32 platform.
> I've managed to achieve the effect I think you want, with the following
> quick and very dirty, and hideously ugly workaround:--
> 
> .PS
> .fam H
> boxrad = 0.15
> [ box rad 0 width 1.5-2*0.15 shaded "green" invisible
>   circle at last box.nw-(0.0,0.15) rad 0.15 shaded "green" invisible
>   circle at last box.sw+(0.0,0.15) rad 0.15 shaded "green" invisible
>   circle at last box.ne-(0.0,0.15) rad 0.15 shaded "green" invisible
>   circle at last box.se+(0.0,0.15) rad 0.15 shaded "green" invisible
> ]
> box at last [].c width 1.5 height last [].height - 2.0*0.15 rad 0 \
>   shaded "green" invisible
> box at last [].c width 1.5 "some text"
> .PE
> 
> Perhaps you could develop this into a macro, to work around the bug.
> 
> HTH.
> 
> Keith.

Hi Keith,

well done with the work around. I think this is the way to fix gpic,
internally gpic will have to map a cornered box onto your multiple
objects sequence as there isn't a "cornered box" glyph in gtroff.

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]