After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564544 - shape-rendering crispEdges property is antialiasing line elements
shape-rendering crispEdges property is antialiasing line elements
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.22.x
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
: 601865 (view as bug list)
Depends on:
Blocks: 598151
 
 
Reported: 2008-12-15 01:31 UTC by Russ Adams
Modified: 2010-04-08 12:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (913 bytes, patch)
2010-04-07 11:15 UTC, Hiroyuki Ikezoe
committed Details | Review

Description Russ Adams 2008-12-15 01:31:00 UTC
Please describe the problem:
When you specify a line with a 1 pixel stroke-width and specify crispEdges for the shape-rendering style, the line is drawn blurry and is 2 pixels wide.

Steps to reproduce:
Render the following SVG to reproduce:
<svg xmlns="http://www.w3.org/2000/svg" width="700" height="300" >
<line x1="15" y1="0" x2="15" y2="300" stroke="#000" stroke-width="1px" style="shape-rendering: crispEdges" />
</svg>

Actual results:
Aforementioned blurry line.

Expected results:
I would expect a 1 pixel, un-antialiased line.

Does this happen every time?
Yes

Other information:
In the source for librsvg-2.23.3, I modified ./rsvg-cairo-draw.c:52 and was able to solve the problem.

- cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+ cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);

While this solution solves my problem, I don't know if it affects anything else.
Comment 1 Antonio Roberts 2009-10-12 11:11:22 UTC
Is there any progress on this?
Comment 2 Hiroyuki Ikezoe 2010-04-07 10:54:16 UTC
*** Bug 601865 has been marked as a duplicate of this bug. ***
Comment 3 Hiroyuki Ikezoe 2010-04-07 11:15:35 UTC
Created attachment 158109 [details] [review]
Fix