Bug 687715 - stroking: Stroke width differs from Adobe.
Summary: stroking: Stroke width differs from Adobe.
Status: CONFIRMED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Graphics Library (show other bugs)
Version: master
Hardware: All All
: P4 enhancement
Assignee: Robin Watts
URL:
Keywords: bountiable
Depends on:
Blocks:
 
Reported: 2004-09-29 03:50 UTC by Igor Melichev
Modified: 2021-01-02 03:42 UTC (History)
5 users (show)

See Also:
Customer:
Word Size: ---


Attachments
A test case and testing results (116.00 KB, application/gzip)
2021-01-02 03:42 UTC, Peter Cherepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.