bugGNU roff - Bugs: bug #49953, [pic] shading a box with rounded...

 
 

bug #49953: [pic] shading a box with rounded corners doesn't work

Submitter:  None
Submitted:  Thu 29 Dec 2016 07:48:49 PM UTC
   
 
Category:  Preprocessor pic Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.20.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 11 Aug 2021 12:56:56 PM UTC, comment #3: 

I should clarify that I'm certain the bug is fixed--the bit I'm uncertain about is when, though pic has seen so few changes in the past 15 years that the commit is one of the few candidates for having resolved it.

If one tries the original submission's example document, one gets perfectly pleasant output.  (Well, the colors are garish, but they don't overspill the object borders.)


.PS
box "TEXT1" shaded "red" boxht 0.2 boxwid 1.0
box "TEXT2" color "red" boxht 0.2 boxwid 1.0
box "TEXT3" shaded "red" outline "blue" boxht 0.2 boxwid 1.0
box "TEXT4" shaded "red" boxht 0.2 boxwid 1.0 rad 0.1
box "TEXT5" shaded "red" outline "orange" boxht 0.2 boxwid 1.0 rad 0.1
box "TEXT6" color "red" boxht 0.2 boxwid 1.0  rad 0.1
.PE


Attaching screenshot of ps file generated by "groff -p" on the above input, using groff 1.22.4.


G. Branden Robinson <gbranden>
Group administrator
Wed 11 Aug 2021 12:36:55 PM UTC, comment #2: 

I think this was fixed back in groff 1.20.  Note that the report  was against groff 1.19.2, the geriatric version that Apple refuses to update.


commit 3c9f7d3a80b59ebb5ec00e22745e1570e92b427b
Author: Werner LEMBERG <wl@gnu.org>
Date:   Tue Apr 10 08:13:42 2007 +0000

    In pic, make rounded boxes work with colors.  Reported by Urs Eggli
    <Urs.Eggli@zuerich.ch>.

    * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
    (output): Add color parameter to `rounded_box' member function.

    * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.

    * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
    to `out->rounded_box'.


G. Branden Robinson <gbranden>
Group administrator
Wed 03 May 2017 02:14:37 PM UTC, comment #1: 

I'm a newcomer to pic.  Can you comment on the attachment and describe how it differs from your expectations?

What I see is every box shaded red to its be they right-angle or rounded.

(file #40573)

G. Branden Robinson <gbranden>
Group administrator
Thu 29 Dec 2016 07:48:49 PM UTC, original submission:  

This was a bit of a surprise.  I have attached a short reproduction:

.PS
box "TEXT1" shaded "red" boxht 0.2 boxwid 1.0
box "TEXT2" color "red" boxht 0.2 boxwid 1.0
box "TEXT3" shaded "red" outline "blue" boxht 0.2 boxwid 1.0
box "TEXT4" shaded "red" boxht 0.2 boxwid 1.0 rad 0.1
box "TEXT5" shaded "red" outline "orange" boxht 0.2 boxwid 1.0 rad 0.1
box "TEXT6" color "red" boxht 0.2 boxwid 1.0  rad 0.1
.PE

The first three work as expected and the final three for shading but do work for outlining.  I tested some argument ordering and that doesn't seem to matter.  Likewise, I don't think the value for rad matters unless it's set to zero.

Version:  Groff/gpic 1.19.2
Operating environment:  Darwin hostnamedeleted 15.6.0 Darwin Kernel Version 15.6.0: Wed Nov  2 20:30:56 PDT 2016; root:xnu-3248.60.11.1.2~2/RELEASE_X86_64 x86_64

I checked the open bug reports and didn't see anything applicable.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #40573:  savannah-49953-repro.tar.gz added by gbranden (3KiB - application/octetstream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-01 gbranden Planned ReleaseNone 1.20.0
        Summaryshading a box with rounded corners doesn't work [pic] shading a box with rounded corners doesn't work
    2021-08-11 gbranden Attached File- Added Screenshot@from@2021-08-11@22-55-32.png, #51763
    2021-08-11 gbranden StatusNeed Info Fixed
        Assigned toNone gbranden
        Open/ClosedOpen Closed
    2021-05-14 barx Carbon-CopyRemoved 93119 -
    2021-05-14 barx CategoryNone Preprocessor pic
    2017-05-03 gbranden Attached File- Added savannah-49953-repro.tar.gz, #40573
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code