Bug 687715

Summary: stroking: Stroke width differs from Adobe.
Product: Ghostscript Reporter: Igor Melichev <igor.melichev>
Component: Graphics LibraryAssignee: Robin Watts <robin.watts>
Status: CONFIRMED ---    
Severity: enhancement CC: christinedelight.top85, jordy.dickinson, missoumozil, shailesh.mistry, sphinx.pinastri
Priority: P4 Keywords: bountiable
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---
Attachments: A test case and testing results

Description Igor Melichev 2004-09-29 03:50:00 UTC
This issue is factored out from Bug 687667.

We did a small experimenting with CPSI about stroking lines, which are not 
within a font character. 

With "false setstrokeadjust" it rounds the width to pixels, then applies 
the "any part of pixel inside" rule.

With "true setstrokeadjust" it rounds the width to pixels, then applies 
the "pixel center inside" rule.

So by Adobe, the width differs with strokeadjust and with no it.
Ghostscript paints same width.

In any case, likely it never paints a fractional width, but need to test more 
for sure.
Comment 1 Henry Stiles 2009-11-19 07:50:31 UTC
Reassigning path and fill problems to Robin Watts.
Comment 2 Robin Watts 2010-01-28 17:21:28 UTC
Reassigning to new email address.
Comment 3 Shailesh Mistry 2011-07-12 19:21:41 UTC
Enhancement still missing in Ghostscript 9.03
Comment 4 Jordy Dickinson 2014-12-04 10:39:41 UTC
Has this been fixed? Using the following code it seems to behave as described by Igor Melichev:

```
false setstrokeadjust

1.3 setlinewidth

newpath
    10  10.1 moveto
    100 10.1 lineto
stroke

true setstrokeadjust

newpath
    100 10.1 moveto
    190 10.1 lineto
stroke

showpage
```
Comment 5 Jordy Dickinson 2014-12-05 06:19:28 UTC
It looks like this was fixed with this commit: http://www.ghostscript.com/pipermail/gs-cvs/2004-September/004893.html
Comment 6 Peter Cherepanov 2021-01-02 03:42:37 UTC
Created attachment 20413 [details]
A test case and testing results

Stroking width is still different.