GNOME Bugzilla – Bug 564544
shape-rendering crispEdges property is antialiasing line elements
Last modified: 2010-04-08 12:04:08 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.
Is there any progress on this?
*** Bug 601865 has been marked as a duplicate of this bug. ***
Created attachment 158109 [details] [review] Fix
Pushed. http://git.gnome.org/browse/librsvg/commit/?id=c372499d0de4206df6c3c4efd27817165b269a1c