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. _______________________________________________ Groff mailing list [email protected] http://lists.gnu.org/mailman/listinfo/groff
